xref: /llvm-project/llvm/test/CodeGen/Mips/GlobalISel/instruction-select/constants.mir (revision 48904e9452de81375bd55d830d08e51cc8f2ec7e)
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
3--- |
4
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}
9
10...
11---
12name:            _0xABCD0000
13alignment:       4
14legalized:       true
15regBankSelected: true
16tracksRegLiveness: true
17body:             |
18  bb.1.entry:
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
24    $v0 = COPY %0(s32)
25    RetRA implicit $v0
26
27...
28---
29name:            _0x00008000
30alignment:       4
31legalized:       true
32regBankSelected: true
33tracksRegLiveness: true
34body:             |
35  bb.1.entry:
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
41    $v0 = COPY %0(s32)
42    RetRA implicit $v0
43
44...
45---
46name:            _0xFFFFFFF6
47alignment:       4
48legalized:       true
49regBankSelected: true
50tracksRegLiveness: true
51body:             |
52  bb.1.entry:
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
58    $v0 = COPY %0(s32)
59    RetRA implicit $v0
60
61...
62---
63name:            _0x0A0B0C0D
64alignment:       4
65legalized:       true
66regBankSelected: true
67tracksRegLiveness: true
68body:             |
69  bb.1.entry:
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
76    $v0 = COPY %0(s32)
77    RetRA implicit $v0
78
79...
80
81