================
@@ -0,0 +1,38 @@
+// RUN: cir-translate %s -cir-to-llvmir --target spirv64-unknown-unknown -o 
%t.ll
+// RUN: FileCheck --input-file=%t.ll %s -check-prefix=LLVM
+
+!s32i = !cir.int<s, 32>
+
+module {
----------------
andykaylor wrote:

Can you add a test case like this?

```
  cir.global external target_address_space(1) @counter = #cir.int<42> : !s32i

  // One pointer-sized slot holding "address of @counter as opaque bytes".
  cir.global external @slot = #cir.const_array<[
    #cir.global_view<@counter> : !cir.ptr<!u8i>  ]> : !cir.array<!cir.ptr<!u8i> 
x 1>
```
I haven't tried that, so I'm not sure it's correct. I'm trying to get both a 
base type cast and an address space cast in the same value.

https://github.com/llvm/llvm-project/pull/190197
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to