1 ; RUN: llc -mtriple=i686-- < %s | FileCheck %s
3 ; No attributes, should not use idiv
4 define i32 @test1(i32 inreg %x) {
13 ; Has minsize (-Oz) attribute, should generate idiv
14 define i32 @test2(i32 inreg %x) minsize {
16 %div = sdiv i32 %x, 16
23 ; Has optsize (-Os) attribute, should not generate idiv
24 define i32 @test3(i32 inreg %x) optsize {
26 %div = sdiv i32 %x, 16