1 ; Test the "I" constraint (8-bit unsigned constants).
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
5 ; Test 1 below the first valid value.
8 ; CHECK: lhi [[REG:%r[0-5]]], -1
9 ; CHECK: blah %r2 [[REG]]
11 %val = call i32 asm "blah $0 $1", "=&r,rI" (i32 -1)
15 ; Test the first valid value.
20 %val = call i32 asm "blah $0 $1", "=&r,rI" (i32 0)
24 ; Test the last valid value.
29 %val = call i32 asm "blah $0 $1", "=&r,rI" (i32 255)
33 ; Test 1 above the last valid value.
36 ; CHECK: lhi [[REG:%r[0-5]]], 256
37 ; CHECK: blah %r2 [[REG]]
39 %val = call i32 asm "blah $0 $1", "=&r,rI" (i32 256)