blob: 51ea843712d195b099c4848488efc4b47c789fd8 [file] [log] [blame]
Daniel Dunbar31ab6e32009-09-05 11:35:16 +00001; RUN: llc -march=x86-64 < %s | FileCheck %s
Evan Cheng599a6a82009-03-04 01:41:49 +00002; PR3701
3
4define i64 @t(i64* %arg) nounwind {
5 br i1 true, label %1, label %5
6
7; <label>:1 ; preds = %0
8 %2 = icmp eq i64* null, %arg ; <i1> [#uses=1]
9 %3 = tail call i64* asm sideeffect "movl %fs:0,$0", "=r,~{dirflag},~{fpsr},~{flags}"() nounwind ; <%struct.thread*> [#uses=0]
Daniel Dunbar31ab6e32009-09-05 11:35:16 +000010; CHECK: test
11; CHECK-NEXT: j
Evan Cheng599a6a82009-03-04 01:41:49 +000012 br i1 %2, label %4, label %5
13
14; <label>:4 ; preds = %1
15 ret i64 1
16
17; <label>:5 ; preds = %1
18 ret i64 0
19}