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: andi $2, $1, 65535
60 define zeroext i8 @unsigned_i8() {
61 ; MIPS32-LABEL: unsigned_i8:
62 ; MIPS32: # %bb.0: # %entry
63 ; MIPS32-NEXT: addiu $1, $zero, 65408
64 ; MIPS32-NEXT: andi $2, $1, 255
71 define zeroext i1 @i1_true() {
72 ; MIPS32-LABEL: i1_true:
73 ; MIPS32: # %bb.0: # %entry
74 ; MIPS32-NEXT: ori $1, $zero, 1
75 ; MIPS32-NEXT: andi $2, $1, 1
82 define zeroext i1 @i1_false() {
83 ; MIPS32-LABEL: i1_false:
84 ; MIPS32: # %bb.0: # %entry
85 ; MIPS32-NEXT: ori $1, $zero, 0
86 ; MIPS32-NEXT: andi $2, $1, 1
93 define i32 @_0xABCD0000() {
94 ; MIPS32-LABEL: _0xABCD0000:
95 ; MIPS32: # %bb.0: # %entry
96 ; MIPS32-NEXT: lui $2, 43981
103 define i32 @_0x00008000() {
104 ; MIPS32-LABEL: _0x00008000:
105 ; MIPS32: # %bb.0: # %entry
106 ; MIPS32-NEXT: ori $2, $zero, 32768
107 ; MIPS32-NEXT: jr $ra
113 define i32 @_0xFFFFFFF6() {
114 ; MIPS32-LABEL: _0xFFFFFFF6:
115 ; MIPS32: # %bb.0: # %entry
116 ; MIPS32-NEXT: addiu $2, $zero, 65526
117 ; MIPS32-NEXT: jr $ra
123 define i32 @_0x0A0B0C0D() {
124 ; MIPS32-LABEL: _0x0A0B0C0D:
125 ; MIPS32: # %bb.0: # %entry
126 ; MIPS32-NEXT: lui $1, 2571
127 ; MIPS32-NEXT: ori $2, $1, 3085
128 ; MIPS32-NEXT: jr $ra