1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
5 define void @_0xABCD0000() {entry: ret void}
6 define void @_0x00008000() {entry: ret void}
7 define void @_0xFFFFFFF6() {entry: ret void}
8 define void @_0x0A0B0C0D() {entry: ret void}
16 tracksRegLiveness: true
19 ; MIPS32-LABEL: name: _0xABCD0000
20 ; MIPS32: [[LUi:%[0-9]+]]:gpr32 = LUi 43981
21 ; MIPS32: $v0 = COPY [[LUi]]
22 ; MIPS32: RetRA implicit $v0
23 %0:gprb(s32) = G_CONSTANT i32 -1412628480
33 tracksRegLiveness: true
36 ; MIPS32-LABEL: name: _0x00008000
37 ; MIPS32: [[ORi:%[0-9]+]]:gpr32 = ORi $zero, 32768
38 ; MIPS32: $v0 = COPY [[ORi]]
39 ; MIPS32: RetRA implicit $v0
40 %0:gprb(s32) = G_CONSTANT i32 32768
50 tracksRegLiveness: true
53 ; MIPS32-LABEL: name: _0xFFFFFFF6
54 ; MIPS32: [[ADDiu:%[0-9]+]]:gpr32 = ADDiu $zero, 65526
55 ; MIPS32: $v0 = COPY [[ADDiu]]
56 ; MIPS32: RetRA implicit $v0
57 %0:gprb(s32) = G_CONSTANT i32 -10
67 tracksRegLiveness: true
70 ; MIPS32-LABEL: name: _0x0A0B0C0D
71 ; MIPS32: [[LUi:%[0-9]+]]:gpr32 = LUi 2571
72 ; MIPS32: [[ORi:%[0-9]+]]:gpr32 = ORi [[LUi]], 3085
73 ; MIPS32: $v0 = COPY [[ORi]]
74 ; MIPS32: RetRA implicit $v0
75 %0:gprb(s32) = G_CONSTANT i32 168496141