diff options
Diffstat (limited to 'llvm/test/CodeGen/ARM/longarith.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/longarith.ll | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/longarith.ll b/llvm/test/CodeGen/ARM/longarith.ll new file mode 100644 index 00000000000..63b81bcac05 --- /dev/null +++ b/llvm/test/CodeGen/ARM/longarith.ll @@ -0,0 +1,24 @@ +; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm && +; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __ashldi3 && +; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __ashrdi3 && +; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __lshrdi3 +uint %f1(ulong %x, ubyte %y) { +entry: + %a = shl ulong %x, ubyte %y + %b = cast ulong %a to uint + ret uint %b +} + +uint %f2(long %x, ubyte %y) { +entry: + %a = shr long %x, ubyte %y + %b = cast long %a to uint + ret uint %b +} + +uint %f3(ulong %x, ubyte %y) { +entry: + %a = shr ulong %x, ubyte %y + %b = cast ulong %a to uint + ret uint %b +} |