1 ; Test the "K" constraint (16-bit signed constants).
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
5 ; Test 1 below the first valid value.
8 ; CHECK: iilf [[REG:%r[0-5]]], 4294934527
9 ; CHECK: blah %r2 [[REG]]
11 %val = call i32 asm "blah $0 $1", "=&r,rK" (i32 -32769)
15 ; Test the first valid value.
18 ; CHECK: blah %r2 -32768
20 %val = call i32 asm "blah $0 $1", "=&r,rK" (i32 -32768)
24 ; Test the last valid value.
27 ; CHECK: blah %r2 32767
29 %val = call i32 asm "blah $0 $1", "=&r,rK" (i32 32767)
33 ; Test 1 above the last valid value.
36 ; CHECK: llill [[REG:%r[0-5]]], 32768
37 ; CHECK: blah %r2 [[REG]]
39 %val = call i32 asm "blah $0 $1", "=&r,rK" (i32 32768)