1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=div-rem-pairs -S -mtriple=powerpc64-unknown-unknown | FileCheck %s
9 ; CHECK-NEXT: [[TMP0:%.*]] = mul i16 [[DIV_I:%.*]], [[REM_FROZEN:%.*]]
10 ; CHECK-NEXT: [[REM_DECOMPOSED:%.*]] = sub i16 1, [[TMP0]]
11 ; CHECK-NEXT: [[REM_FROZEN]] = freeze i16 [[REM_DECOMPOSED]]
12 ; CHECK-NEXT: [[DIV_I]] = sdiv i16 1, [[REM_FROZEN]]
13 ; CHECK-NEXT: br label [[FOR_COND:%.*]]
18 for.cond: ; preds = %for.cond
19 %rem = srem i16 1, %rem
20 %div.i = sdiv i16 1, %rem