diff options
author | Chris Lattner <sabre@nondot.org> | 2010-10-08 05:12:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-10-08 05:12:30 +0000 |
commit | 40755467393f4569200cbc1cf1e9feeea4668611 (patch) | |
tree | ae332fdbc566e4c230cca0b8486b2928cc975891 | |
parent | d043529b348c48e63a80eead6e4e042a5d5a29a3 (diff) | |
download | external_llvm-40755467393f4569200cbc1cf1e9feeea4668611.zip external_llvm-40755467393f4569200cbc1cf1e9feeea4668611.tar.gz external_llvm-40755467393f4569200cbc1cf1e9feeea4668611.tar.bz2 |
testcase that goes with r116053
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116054 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/X86/cmp.ll | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/CodeGen/X86/cmp.ll b/test/CodeGen/X86/cmp.ll index 1921e6b..ef5e353 100644 --- a/test/CodeGen/X86/cmp.ll +++ b/test/CodeGen/X86/cmp.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -mtriple=x86_64-apple-darwin10 | FileCheck %s +; RUN: llc < %s -mtriple=x86_64-apple-darwin10 -show-mc-encoding | FileCheck %s define i32 @test1(i32 %X, i32* %y) nounwind { %tmp = load i32* %y ; <i32> [#uses=1] @@ -73,3 +73,20 @@ define i32 @test5(double %A) nounwind { } declare i32 @foo(...) + +define i32 @test6() nounwind align 2 { + %A = alloca {i64, i64}, align 8 + %B = getelementptr inbounds {i64, i64}* %A, i64 0, i32 1 + %C = load i64* %B + %D = icmp eq i64 %C, 0 + br i1 %D, label %T, label %F +T: + ret i32 1 + +F: + ret i32 0 +; CHECK: test6: +; CHECK: cmpq $0, -8(%rsp) +; CHECK: encoding: [0x48,0x83,0x7c,0x24,0xf8,0x00] +} + |