1 ; Test the "M" constraint (0x7fffffff) 2 ; 3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s 4 5 ; Test 1 below the valid value. 6 define i32 @f1() { 7 ; CHECK-LABEL: f1: 8 ; CHECK: iilf [[REG:%r[0-5]]], 2147483646 9 ; CHECK: blah %r2 [[REG]] 10 ; CHECK: br %r14 11 %val = call i32 asm "blah $0 $1", "=&r,rM" (i32 2147483646) 12 ret i32 %val 13 } 14 15 ; Test the first valid value. 16 define i32 @f2() { 17 ; CHECK-LABEL: f2: 18 ; CHECK: blah %r2 2147483647 19 ; CHECK: br %r14 20 %val = call i32 asm "blah $0 $1", "=&r,rM" (i32 2147483647) 21 ret i32 %val 22 } 23 24 ; Test 1 above the valid value. 25 define i32 @f3() { 26 ; CHECK-LABEL: f3: 27 ; CHECK: llilh [[REG:%r[0-5]]], 32768 28 ; CHECK: blah %r2 [[REG]] 29 ; CHECK: br %r14 30 %val = call i32 asm "blah $0 $1", "=&r,rM" (i32 2147483648) 31 ret i32 %val 32 } 33