cranelift: Update i128 tests to use i128 values in functions
This commit is contained in:
18
cranelift/filetests/filetests/runtests/i128-cls.clif
Normal file
18
cranelift/filetests/filetests/runtests/i128-cls.clif
Normal file
@@ -0,0 +1,18 @@
|
||||
test run
|
||||
target aarch64
|
||||
|
||||
function %cls_i128(i128) -> i128 {
|
||||
block0(v0: i128):
|
||||
v1 = cls v0
|
||||
return v1
|
||||
}
|
||||
; run: %cls_i128(0x00000000_00000000_00000000_00000000) == 127
|
||||
; run: %cls_i128(0x00000000_00000000_FFFFFFFF_FFFFFFFF) == 63
|
||||
; run: %cls_i128(0xFFFFFFFF_FFFFFFFF_00000000_00000000) == 63
|
||||
; run: %cls_i128(0xFFFFFFFF_FFFFFFFF_FFFFFFFF_FFFFFFFF) == 127
|
||||
; run: %cls_i128(0x7FFFFFFF_FFFFFFFF_FFFFFFFF_FFFFFFFF) == 0
|
||||
; run: %cls_i128(0x3FFFFFFF_FFFFFFFF_FFFFFFFF_FFFFFFFF) == 1
|
||||
; run: %cls_i128(0xFFFFFFFF_FFFFFFFF_7FFFFFFF_FFFFFFFF) == 63
|
||||
; run: %cls_i128(0xC0000000_00000000_80000000_00000000) == 1
|
||||
; run: %cls_i128(0xC0000000_00000000_00000000_00000000) == 1
|
||||
; run: %cls_i128(0x80000000_00000000_80000000_00000000) == 0
|
||||
Reference in New Issue
Block a user