1 ; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
2 ; RUN: llc -mtriple=thumbv7-windows %s -o - | FileCheck %s -check-prefix=CHECK-WIN
4 ; The Windows runtime doesn't have these.
5 ; CHECK-WIN-NOT: __ashldi3
6 ; CHECK-WIN-NOT: __ashrdi3
7 ; CHECK-WIN-NOT: __lshrdi3
9 define i64 @f0(i64 %val, i64 %amt) minsize optsize {
11 ; CHECK: bl __aeabi_llsl
12 %res = shl i64 %val, %amt
16 define i32 @f1(i64 %x, i64 %y) minsize optsize {
18 ; CHECK: bl __aeabi_llsl
20 %b = trunc i64 %a to i32
24 define i32 @f2(i64 %x, i64 %y) minsize optsize {
26 ; CHECK: bl __aeabi_lasr
28 %b = trunc i64 %a to i32
32 define i32 @f3(i64 %x, i64 %y) minsize optsize {
34 ; CHECK: bl __aeabi_llsr
36 %b = trunc i64 %a to i32