Evan Cheng | 599a6a8 | 2009-03-04 01:41:49 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86-64 | %prcontext test 1 | grep j |
| 2 | ; PR3701 |
| 3 | |
| 4 | define 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 | } |