From 9626447e70a3c8dc88b09f84414ee416a39518b1 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 17 Mar 2009 02:45:40 +0000 Subject: Recognize bswapl as bswap too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67072 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/bswap-inline-asm.ll | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/CodeGen/X86/bswap-inline-asm.ll') diff --git a/test/CodeGen/X86/bswap-inline-asm.ll b/test/CodeGen/X86/bswap-inline-asm.ll index c44d845c83..91f8310361 100644 --- a/test/CodeGen/X86/bswap-inline-asm.ll +++ b/test/CodeGen/X86/bswap-inline-asm.ll @@ -1,6 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86-64 > %t ; RUN: not grep APP %t ; RUN: grep bswapq %t | count 2 +; RUN: grep bswapl %t | count 1 define i64 @foo(i64 %x) nounwind { %asmtmp = tail call i64 asm "bswap $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i64 %x) nounwind @@ -10,3 +11,7 @@ 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 } +define i32 @pen(i32 %x) nounwind { + %asmtmp = tail call i32 asm "bswapl ${0:q}", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %x) nounwind + ret i32 %asmtmp +} -- cgit v1.2.3