Dan Gohman | 4d6da8c | 2009-03-17 02:17:27 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86-64 > %t |
2 | ; RUN: not grep APP %t | ||||
3 | ; RUN: grep bswapq %t | count 2 | ||||
4 | |||||
5 | define i64 @foo(i64 %x) nounwind { | ||||
6 | %asmtmp = tail call i64 asm "bswap $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i64 %x) nounwind | ||||
7 | ret i64 %asmtmp | ||||
8 | } | ||||
9 | define i64 @bar(i64 %x) nounwind { | ||||
10 | %asmtmp = tail call i64 asm "bswapq ${0:q}", "=r,0,~{dirflag},~{fpsr},~{flags}"(i64 %x) nounwind | ||||
11 | ret i64 %asmtmp | ||||
12 | } |