Skip to content

Commit 8578a56

Browse files
update the test
1 parent 4c1d90c commit 8578a56

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_arbitrary_precision_integers.ll

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ define i13 @getConstantI13() {
1010

1111
define i96 @getConstantI96() {
1212
ret i96 18446744073709551620
13-
}
13+
}
14+
15+
define i160 @getConstantI160() {
16+
ret i160 3363637389930338837376336738763689377839373638
17+
}
1418

1519
;; Capabilities:
1620
; CHECK-DAG: OpExtension "SPV_INTEL_arbitrary_precision_integers"
@@ -21,14 +25,20 @@ define i96 @getConstantI96() {
2125
;; Names:
2226
; CHECK-DAG: OpName %[[#GET_I6:]] "getConstantI6"
2327
; CHECK-DAG: OpName %[[#GET_I13:]] "getConstantI13"
28+
; CHECK-DAG: OpName %[[#GET_I96:]] "getConstantI96"
29+
; CHECK-DAG: OpName %[[#GET_I160:]] "getConstantI160"
2430

2531
; CHECK-NOT: DAG-FENCE
2632

2733
;; Types and Constants:
2834
; CHECK-DAG: %[[#I6:]] = OpTypeInt 6 0
2935
; CHECK-DAG: %[[#I13:]] = OpTypeInt 13 0
36+
; CHECK-DAG: %[[#I96:]] = OpTypeInt 96 0
37+
; CHECK-DAG: %[[#I160:]] = OpTypeInt 160 0
3038
; CHECK-DAG: %[[#CST_I6:]] = OpConstant %[[#I6]] 2
3139
; CHECK-DAG: %[[#CST_I13:]] = OpConstant %[[#I13]] 42
40+
; CHECK-DAG: %[[#CST_I96:]] = OpConstant %[[#I96]] 18446744073709551620
41+
; CHECK-DAG: %[[#CST_I160:]] = OpConstant %[[#I160]] 3363637389930338837376336738763689377839373638
3242

3343
; CHECK: %[[#GET_I6]] = OpFunction %[[#I6]]
3444
; CHECK: OpReturnValue %[[#CST_I6]]
@@ -37,3 +47,11 @@ define i96 @getConstantI96() {
3747
; CHECK: %[[#GET_I13]] = OpFunction %[[#I13]]
3848
; CHECK: OpReturnValue %[[#CST_I13]]
3949
; CHECK: OpFunctionEnd
50+
51+
; CHECK: %[[#GET_I96]] = OpFunction %[[#I96]]
52+
; CHECK: OpReturnValue %[[#CST_I96]]
53+
; CHECK: OpFunctionEnd
54+
55+
; CHECK: %[[#GET_I160]] = OpFunction %[[#I160]]
56+
; CHECK: OpReturnValue %[[#CST_I160]]
57+
; CHECK: OpFunctionEnd

0 commit comments

Comments
 (0)