Files
swift-mirror/test/IRGen/undef.sil
Dario Rexin 38bd7f436e [Tests] Fix IRGen tests for new LLVM version
rdar://132124067

LLVM code gen has changed, so we need to adjust the expected output in our tests accordingly
2024-07-23 11:23:32 -07:00

19 lines
516 B
Plaintext

// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s
// REQUIRES: CPU=x86_64
import Builtin
// CHECK: define{{( dllexport)?}}{{( protected)?}} swiftcc void @undefined() {{.*}} {
// CHECK: entry:
// CHECK: store i64 undef, ptr undef, align 8
// CHECK: store i8 undef, ptr undef, align 8
// CHECK: store ptr undef, ptr undef, align 8
// CHECK: ret void
// CHECK: }
sil @undefined : $() -> () {
entry:
store undef to undef : $*(Builtin.Int64, Builtin.Int8, Builtin.RawPointer)
return undef : $()
}