Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s
      2 ; RUN: llc -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s
      3 
      4 ; Function Attrs: nounwind
      5 define signext i32 @test1() #0 {
      6 entry:
      7   %0 = call i32 @llvm.ppc.divwe(i32 32, i32 16)
      8   ret i32 %0
      9 ; CHECK: divwe 3, 4, 3
     10 }
     11 
     12 ; Function Attrs: nounwind readnone
     13 declare i32 @llvm.ppc.divwe(i32, i32) #1
     14 
     15 ; Function Attrs: nounwind
     16 define signext i32 @test2() #0 {
     17 entry:
     18   %0 = call i32 @llvm.ppc.divweu(i32 32, i32 16)
     19   ret i32 %0
     20 ; CHECK: divweu 3, 4, 3
     21 }
     22 
     23 ; Function Attrs: nounwind readnone
     24 declare i32 @llvm.ppc.divweu(i32, i32) #1
     25 
     26 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
     27 attributes #1 = { nounwind readnone }
     28 
     29 !llvm.ident = !{!0}
     30 
     31 !0 = !{!"clang version 3.7.0 (trunk 231831) (llvm/trunk 231828:231843M)"}
     32