1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr9 \
2 ; RUN: | FileCheck %s -check-prefix=DEFAULT
3 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr9 \
4 ; RUN: -ppc-set-dscr=0xFFFFFFFFFFFFFFFF | FileCheck %s -check-prefix=UPPER
5 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr9 \
6 ; RUN: -ppc-set-dscr=0x01C4 | FileCheck %s -check-prefix=LOWER
12 ; DEFAULT-NOT: mtudscr
14 ; UPPER: lis [[inReg:[0-9]+]], 511
15 ; UPPER-NEXT: ori [[inReg]], [[inReg]], 65535
16 ; UPPER-NEXT: mtudscr [[inReg]]
18 ; LOWER: lis [[inReg:[0-9]+]], 0
19 ; LOWER-NEXT: ori [[inReg]], [[inReg]], 452
20 ; LOWER-NEXT: mtudscr [[inReg]]