1 ; RUN: llc < %s -march=sparcv9 | FileCheck %s
4 ; CHECK: sdivx %o0, %o1, %o2
5 ; CHECK-NEXT: mulx %o2, %o1, %o1
6 ; CHECK-NEXT: jmp %o7+8
7 ; CHECK-NEXT: sub %o0, %o1, %o0
9 define i64 @test1(i64 %X, i64 %Y) {
10 %tmp1 = srem i64 %X, %Y
15 ; CHECK: udivx %o0, %o1, %o2
16 ; CHECK-NEXT: mulx %o2, %o1, %o1
17 ; CHECK-NEXT: jmp %o7+8
18 ; CHECK-NEXT: sub %o0, %o1, %o0
20 define i64 @test2(i64 %X, i64 %Y) {
21 %tmp1 = urem i64 %X, %Y