1 ; Test 32-bit ORs in which the second operand is constant.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
5 ; Check the lowest useful OILL value.
6 define i32 @f1(i32 %a) {
14 ; Check the high end of the OILL range.
15 define i32 @f2(i32 %a) {
17 ; CHECK: oill %r2, 65535
19 %or = or i32 %a, 65535
23 ; Check the lowest useful OILH range, which is the next value up.
24 define i32 @f3(i32 %a) {
28 %or = or i32 %a, 65536
32 ; Check the lowest useful OILF value, which is the next value up again.
33 define i32 @f4(i32 %a) {
35 ; CHECK: oilf %r2, 65537
37 %or = or i32 %a, 65537
41 ; Check the high end of the OILH range.
42 define i32 @f5(i32 %a) {
44 ; CHECK: oilh %r2, 65535
46 %or = or i32 %a, -65536
50 ; Check the next value up, which must use OILF instead.
51 define i32 @f6(i32 %a) {
53 ; CHECK: oilf %r2, 4294901761
55 %or = or i32 %a, -65535
59 ; Check the highest useful OILF value.
60 define i32 @f7(i32 %a) {
62 ; CHECK: oilf %r2, 4294967294