blob: 3c536b716f6248e64b1618d5f2650918615aae35 [file] [log] [blame]
Evan Cheng599a6a82009-03-04 01:41:49 +00001; RUN: llvm-as < %s | llc -march=x86-64 | %prcontext test 1 | grep j
2; 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]
10 br i1 %2, label %4, label %5
11
12; <label>:4 ; preds = %1
13 ret i64 1
14
15; <label>:5 ; preds = %1
16 ret i64 0
17}