| ; RUN: llc -mtriple=x86_64-- -no-integrated-as < %s | FileCheck %s |
| define i64 @t(ptr %arg) nounwind { |
| br i1 true, label %1, label %5 |
| %2 = icmp eq ptr null, %arg ; <i1> [#uses=1] |
| %3 = tail call ptr asm sideeffect "movl %fs:0,$0", "=r,~{dirflag},~{fpsr},~{flags}"() nounwind ; <ptr> [#uses=0] |
| br i1 %2, label %4, label %5 |
| ; Make sure that we translate this to the bswap intrinsic which lowers down without the |
| define i32 @s(i32 %argc, ptr nocapture %argv) unnamed_addr nounwind { |
| %0 = trunc i32 %argc to i16 |
| %asmtmp = tail call i16 asm "rorw $$8, ${0:w}", "=r,0,~{fpsr},~{flags},~{cc}"(i16 %0) nounwind, !srcloc !0 |
| %1 = zext i16 %asmtmp to i32 |