1; RUN: llc < %s -march=x86-64 | FileCheck %s
2; Make sure none of these crash, and that the power-of-two transformations
3; trigger correctly.
4
5define i128 @test1(i128 %x) {
6  ; CHECK-LABEL: test1:
7  ; CHECK-NOT: call
8  %tmp = sdiv i128 %x, 73786976294838206464
9  ret i128 %tmp
10}
11
12define i128 @test2(i128 %x) {
13  ; CHECK-LABEL: test2:
14  ; CHECK-NOT: call
15  %tmp = sdiv i128 %x, -73786976294838206464
16  ret i128 %tmp
17}
18
19define i128 @test3(i128 %x) {
20  ; CHECK-LABEL: test3:
21  ; CHECK: call
22  %tmp = sdiv i128 %x, -73786976294838206467
23  ret i128 %tmp
24}
25