mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 07:05:03 +00:00
13 lines
400 B
LLVM
13 lines
400 B
LLVM
|
; RUN: llvm-as < %s | llc -march=x86-64 > %t
|
||
|
; RUN: not grep APP %t
|
||
|
; RUN: grep bswapq %t | count 2
|
||
|
|
||
|
define i64 @foo(i64 %x) nounwind {
|
||
|
%asmtmp = tail call i64 asm "bswap $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i64 %x) nounwind
|
||
|
ret i64 %asmtmp
|
||
|
}
|
||
|
define i64 @bar(i64 %x) nounwind {
|
||
|
%asmtmp = tail call i64 asm "bswapq ${0:q}", "=r,0,~{dirflag},~{fpsr},~{flags}"(i64 %x) nounwind
|
||
|
ret i64 %asmtmp
|
||
|
}
|