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