xref: /llvm-project/llvm/test/CodeGen/ARM/bswap-inline-asm.ll (revision d24ab20e9b11d2076d8b9d5cd96f41a6b9c399fb)
1078b0b09SEvan Cheng; RUN: llc < %s -mtriple=arm-apple-darwin -mattr=+v6 | FileCheck %s
2078b0b09SEvan Cheng
3078b0b09SEvan Chengdefine i32 @t1(i32 %x) nounwind {
4*d24ab20eSStephen Lin; CHECK-LABEL: t1:
5078b0b09SEvan Cheng; CHECK-NOT: InlineAsm
6078b0b09SEvan Cheng; CHECK: rev
7078b0b09SEvan Cheng  %asmtmp = tail call i32 asm "rev $0, $1\0A", "=l,l"(i32 %x) nounwind
8078b0b09SEvan Cheng  ret i32 %asmtmp
9078b0b09SEvan Cheng}
10