1 ; RUN: llc < %s -mtriple=aarch64-linux-gnu | FileCheck %s
3 define i32 @testsize1(i32 %x) minsize nounwind {
7 ; CHECK-LABEL: testsize1
11 define i32 @testsize2(i32 %x) minsize nounwind {
13 %div = sdiv i32 %x, 33
15 ; CHECK-LABEL: testsize2
19 define i32 @testsize3(i32 %x) minsize nounwind {
21 %div = udiv i32 %x, 32
23 ; CHECK-LABEL: testsize3
27 define i32 @testsize4(i32 %x) minsize nounwind {
29 %div = udiv i32 %x, 33
31 ; CHECK-LABEL: testsize4
35 define <8 x i16> @sdiv_vec8x16_minsize(<8 x i16> %var) minsize {
37 ; CHECK: sdiv_vec8x16_minsize
38 ; CHECK: cmlt v1.8h, v0.8h, #0
39 ; CHECK: usra v0.8h, v1.8h, #11
40 ; CHECK: sshr v0.8h, v0.8h, #5
42 %0 = sdiv <8 x i16> %var, <i16 32, i16 32, i16 32, i16 32, i16 32, i16 32, i16 32, i16 32>