1 ; Test the "J" constraint (12-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,rJ" (i32 -1)
15 ; Test the first valid value.
20 %val = call i32 asm "blah $0 $1", "=&r,rJ" (i32 0)
24 ; Test the last valid value.
27 ; CHECK: blah %r2 4095
29 %val = call i32 asm "blah $0 $1", "=&r,rJ" (i32 4095)
33 ; Test 1 above the last valid value.
36 ; CHECK: lhi [[REG:%r[0-5]]], 4096
37 ; CHECK: blah %r2 [[REG]]
39 %val = call i32 asm "blah $0 $1", "=&r,rJ" (i32 4096)