Skip to content

Commit e8b869c

Browse files
committed
even more test & comment updates
1 parent d7f785e commit e8b869c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

crates/rustc_codegen_spirv/src/builder/builder_methods.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
393393
.def(self),
394394
128 => {
395395
// NOTE: This is a quick solution to support the following case from issue #594:
396-
// pub fn f() -> [u128; 2] { return [0; 2] }
396+
// pub fn init_zero_array_u128() -> [u128; 4] {
397+
// return [0; 4];
398+
// }
397399
// This may be replaced by a more general memset fill solution in the future.
398400
if fill_byte != 0 {
399401
self.fatal("non-zero u128 array fill not implemented yet")

tests/compiletests/ui/lang/core/array/init_zero_array_u128.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
use spirv_std::spirv;
66

7-
pub fn init_zero_array() -> [u128; 4] {
7+
pub fn init_zero_array_u128() -> [u128; 4] {
88
return [0; 4];
99
}
1010

1111
#[spirv(fragment)]
1212
pub fn main() {
1313
// TODO: enable the following once the "unsupported constant" of type u128 is resolved:
14-
// let _ = init_zero_array();
14+
// let _ = init_zero_array_u128();
1515
}

0 commit comments

Comments
 (0)