Skip to content

Commit 3e210eb

Browse files
committed
testcase that goes with r116053
llvm-svn: 116054
1 parent 35e6ce4 commit 3e210eb

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

llvm/test/CodeGen/X86/cmp.ll

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -mtriple=x86_64-apple-darwin10 | FileCheck %s
1+
; RUN: llc < %s -mtriple=x86_64-apple-darwin10 -show-mc-encoding | FileCheck %s
22

33
define i32 @test1(i32 %X, i32* %y) nounwind {
44
%tmp = load i32* %y ; <i32> [#uses=1]
@@ -73,3 +73,20 @@ define i32 @test5(double %A) nounwind {
7373
}
7474

7575
declare i32 @foo(...)
76+
77+
define i32 @test6() nounwind align 2 {
78+
%A = alloca {i64, i64}, align 8
79+
%B = getelementptr inbounds {i64, i64}* %A, i64 0, i32 1
80+
%C = load i64* %B
81+
%D = icmp eq i64 %C, 0
82+
br i1 %D, label %T, label %F
83+
T:
84+
ret i32 1
85+
86+
F:
87+
ret i32 0
88+
; CHECK: test6:
89+
; CHECK: cmpq $0, -8(%rsp)
90+
; CHECK: encoding: [0x48,0x83,0x7c,0x24,0xf8,0x00]
91+
}
92+

0 commit comments

Comments
 (0)