mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-28 10:45:48 +08:00
* mesa3d is for internal use in Mesa's shader compilation pipeline. This never really made sense to have in Zig. * amdpal is for LLPC, part of AMDVLK, which AMD discontinued development of in favor of RADV in 2025. Follow-up work: Removing the amdgcn_cs calling convention.
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
#skip amdgcn-amdhsa-none-baseline-whole-llvm-lld-pic
|
|
|
|
#skip csky-freestanding-eabi-baseline-whole-llvm-lld-pic
|
|
#skip csky-freestanding-eabihf-baseline-whole-llvm-lld-pic
|
|
#skip csky-linux-eabi-baseline-whole-llvm-lld-pic
|
|
#skip csky-linux-eabihf-baseline-whole-llvm-lld-pic
|
|
#skip csky-linux-gnueabi-baseline-whole-llvm-lld-pic
|
|
#skip csky-linux-gnueabihf-baseline-whole-llvm-lld-pic
|
|
|
|
#skip nvptx-cuda-none-baseline-whole-llvm-lld-pic
|
|
#skip nvptx-nvcl-none-baseline-whole-llvm-lld-pic
|
|
|
|
#skip nvptx64-cuda-none-baseline-whole-llvm-lld-pic
|
|
#skip nvptx64-nvcl-none-baseline-whole-llvm-lld-pic
|
|
|
|
#skip x86_64-linux-gnux32-baseline-whole-llvm-new-pic
|
|
#skip x86_64-linux-muslx32-baseline-whole-llvm-new-pic
|
|
#skip x86_64-linux-x32-baseline-whole-llvm-new-pic
|
|
|
|
#obj {
|
|
--name test -fno-lld -fno-new-linker -ofmt=llvmir
|
|
-Mroot=test.zig
|
|
#}
|
|
|
|
#write test.zig {
|
|
export fn entry(ptr: *i16) i16 {
|
|
return ptr.*;
|
|
}
|
|
#}
|
|
#update "store"
|
|
#check llvm {
|
|
define #...@test.entry(ptr #...nonnull #...%0) #...{
|
|
#...load i16, ptr %0#...
|
|
}
|
|
|
|
#}
|
|
|
|
#write test.zig {
|
|
export fn entry(ptr: *i16) void {
|
|
ptr.* = 42;
|
|
}
|
|
#}
|
|
#update "load"
|
|
#check llvm {
|
|
define #...@test.entry(ptr #...nonnull #...%0) #...{
|
|
#...store i16 42, ptr %0#...
|
|
}
|
|
|
|
#}
|