1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -O0 -mtriple=mipsel-linux-gnu -global-isel -verify-machineinstrs %s -o -| FileCheck %s -check-prefixes=MIPS32
4 define i64 @any_i64() {
5 ; MIPS32-LABEL: any_i64:
6 ; MIPS32: # %bb.0: # %entry
7 ; MIPS32-NEXT: ori $2, $zero, 0
8 ; MIPS32-NEXT: lui $3, 32768
12 ret i64 -9223372036854775808
15 define i32 @any_i32() {
16 ; MIPS32-LABEL: any_i32:
17 ; MIPS32: # %bb.0: # %entry
18 ; MIPS32-NEXT: lui $2, 32768
25 define signext i16 @signed_i16() {
26 ; MIPS32-LABEL: signed_i16:
27 ; MIPS32: # %bb.0: # %entry
28 ; MIPS32-NEXT: addiu $1, $zero, 32768
29 ; MIPS32-NEXT: sll $1, $1, 16
30 ; MIPS32-NEXT: sra $2, $1, 16
37 define signext i8 @signed_i8() {
38 ; MIPS32-LABEL: signed_i8:
39 ; MIPS32: # %bb.0: # %entry
40 ; MIPS32-NEXT: addiu $1, $zero, 65408
41 ; MIPS32-NEXT: sll $1, $1, 24
42 ; MIPS32-NEXT: sra $2, $1, 24
49 define zeroext i16 @unsigned_i16() {
50 ; MIPS32-LABEL: unsigned_i16:
51 ; MIPS32: # %bb.0: # %entry
52 ; MIPS32-NEXT: addiu $1, $zero, 32768
53 ; MIPS32-NEXT: ori $2, $zero, 65535
54 ; MIPS32-NEXT: and $2, $1, $2
61 define zeroext i8 @unsigned_i8() {
62 ; MIPS32-LABEL: unsigned_i8:
63 ; MIPS32: # %bb.0: # %entry
64 ; MIPS32-NEXT: addiu $1, $zero, 65408
65 ; MIPS32-NEXT: ori $2, $zero, 255
66 ; MIPS32-NEXT: and $2, $1, $2
73 define zeroext i1 @i1_true() {
74 ; MIPS32-LABEL: i1_true:
75 ; MIPS32: # %bb.0: # %entry
76 ; MIPS32-NEXT: addiu $1, $zero, 65535
77 ; MIPS32-NEXT: ori $2, $zero, 1
78 ; MIPS32-NEXT: and $2, $1, $2
85 define zeroext i1 @i1_false() {
86 ; MIPS32-LABEL: i1_false:
87 ; MIPS32: # %bb.0: # %entry
88 ; MIPS32-NEXT: ori $1, $zero, 0
89 ; MIPS32-NEXT: ori $2, $zero, 1
90 ; MIPS32-NEXT: and $2, $1, $2
97 define i32 @_0xABCD0000() {
98 ; MIPS32-LABEL: _0xABCD0000:
99 ; MIPS32: # %bb.0: # %entry
100 ; MIPS32-NEXT: lui $2, 43981
101 ; MIPS32-NEXT: jr $ra
107 define i32 @_0x00008000() {
108 ; MIPS32-LABEL: _0x00008000:
109 ; MIPS32: # %bb.0: # %entry
110 ; MIPS32-NEXT: ori $2, $zero, 32768
111 ; MIPS32-NEXT: jr $ra
117 define i32 @_0xFFFFFFF6() {
118 ; MIPS32-LABEL: _0xFFFFFFF6:
119 ; MIPS32: # %bb.0: # %entry
120 ; MIPS32-NEXT: addiu $2, $zero, 65526
121 ; MIPS32-NEXT: jr $ra
127 define i32 @_0x0A0B0C0D() {
128 ; MIPS32-LABEL: _0x0A0B0C0D:
129 ; MIPS32: # %bb.0: # %entry
130 ; MIPS32-NEXT: lui $1, 2571
131 ; MIPS32-NEXT: ori $2, $1, 3085
132 ; MIPS32-NEXT: jr $ra