1 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s
3 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s
5 ; Function Attrs: nounwind
6 define signext i32 @test1() #0 {
8 %0 = call i32 @llvm.ppc.divwe(i32 32, i32 16)
10 ; CHECK: divwe 3, 4, 3
13 ; Function Attrs: nounwind readnone
14 declare i32 @llvm.ppc.divwe(i32, i32) #1
16 ; Function Attrs: nounwind
17 define signext i32 @test2() #0 {
19 %0 = call i32 @llvm.ppc.divweu(i32 32, i32 16)
21 ; CHECK: divweu 3, 4, 3
24 ; Function Attrs: nounwind readnone
25 declare i32 @llvm.ppc.divweu(i32, i32) #1
27 ; Function Attrs: nounwind
28 define i64 @test3() #0 {
30 %0 = call i64 @llvm.ppc.divde(i64 32, i64 16)
32 ; CHECK: divde 3, 4, 3
35 ; Function Attrs: nounwind readnone
36 declare i64 @llvm.ppc.divde(i64, i64) #1
38 ; Function Attrs: nounwind
39 define i64 @test4() #0 {
41 %0 = call i64 @llvm.ppc.divdeu(i64 32, i64 16)
43 ; CHECK: divdeu 3, 4, 3
46 ; Function Attrs: nounwind readnone
47 declare i64 @llvm.ppc.divdeu(i64, i64) #1
49 attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
50 attributes #1 = { nounwind readnone }
54 !0 = !{!"clang version 3.7.0 (trunk 231831) (llvm/trunk 231828:231843M)"}