1 ; RUN: llc -verify-machineinstrs -O0 -mcpu=pwr7 -mtriple=powerpc64le-unknown-unknown < %s | FileCheck %s
3 define zeroext i32 @f1() {
9 ; CHECK: ori 3, 3, 65535
11 define zeroext i32 @f2() {
17 ; CHECK: ori 3, 3, 32768
19 define zeroext i32 @f3() {
26 define zeroext i16 @f4() {
32 ; CHECK: ori 3, 3, 65535
34 define zeroext i16 @f5() {
40 ; CHECK: ori 3, 3, 32768
42 define zeroext i16 @f6() {
49 define zeroext i16 @f7() {
55 ; CHECK: ori 3, 3, 65535
57 define zeroext i16 @f8() {
63 ; CHECK: ori 3, 3, 32768
65 define signext i32 @f1s() {
71 ; CHECK: ori 3, 3, 65535
73 define signext i32 @f2s() {
79 ; CHECK: ori 3, 3, 32768
81 define signext i32 @f3s() {
88 define signext i16 @f4s() {
95 define signext i32 @f1sn() {
103 define signext i32 @f2sn() {
108 ; CHECK: li 3, -32768
110 define signext i32 @f3sn() {
115 ; CHECK: li 3, -32767
117 define signext i32 @f4sn() {
124 define signext i16 @f5sn() {
129 ; CHECK: li 3, -32767
131 define signext i16 @f6sn() {
136 ; CHECK: li 3, -32768