Skip to content

Commit fc0f6c8

Browse files
committed
fixing sign in insert test
1 parent 8561801 commit fc0f6c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/language-feature/bitfield/bitfield-insert.slang

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// CHECK-NEXT: A8
1212
// CHECK-NEXT: 3FC0
1313
// CHECK-NEXT: 12D4
14-
// CHECK-NEXT: FFFF9A4C
15-
// CHECK-NEXT: FFFF8755
16-
// CHECK-NEXT: FFFFFE4C
14+
// CHECK-NEXT: 9A4C
15+
// CHECK-NEXT: 8755
16+
// CHECK-NEXT: FE4C
1717

1818
// CHECK-NEXT: 8765432F
1919
// CHECK-NEXT: 876543F1
@@ -77,9 +77,9 @@ void computeMain()
7777
i16Buffer[5] = bitfieldInsert(base, value, 6, 8); // 0b11111111 000000 -> 0x3FC0
7878

7979
// Test with a vector
80-
vector<int16_t, 4> base4 = vector<int16_t, 4>(0x1234, 0x9abc, 0x8765, 0xfedc);
81-
vector<int16_t, 4> value4 = vector<int16_t, 4>(0xABCD, 0x1234, 0x8765, 0x1234);
82-
vector<int16_t, 4> output4 = bitfieldInsert(base4, value4, 4, 4);
80+
vector<uint16_t, 4> base4 = vector<uint16_t, 4>(0x1234, 0x9abc, 0x8765, 0xfedc);
81+
vector<uint16_t, 4> value4 = vector<uint16_t, 4>(0xABCD, 0x1234, 0x8765, 0x1234);
82+
vector<uint16_t, 4> output4 = bitfieldInsert(base4, value4, 4, 4);
8383
i16Buffer[6] = output4.x;
8484
i16Buffer[7] = output4.y;
8585
i16Buffer[8] = output4.z;

0 commit comments

Comments
 (0)