Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CodeGen/address-space.c
Context not available. | |||||
// CHECK: @a = global | // CHECK: @a = global | ||||
int a __attribute__((address_space(0))); | int a __attribute__((address_space(0))); | ||||
// CHECK-LABEL: define i32 @test1() | // CHECK-LABEL: define noundef i32 @test1() | ||||
// CHECK: load i32, i32 addrspace(1)* @foo | // CHECK: load i32, i32 addrspace(1)* @foo | ||||
int test1() { return foo; } | int test1() { return foo; } | ||||
// CHECK-LABEL: define i32 @test2(i32 %i) | // CHECK-LABEL: define noundef i32 @test2(i32 noundef %i) | ||||
// CHECK: load i32, i32 addrspace(1)* | // CHECK: load i32, i32 addrspace(1)* | ||||
// CHECK-NEXT: ret i32 | // CHECK-NEXT: ret i32 | ||||
int test2(int i) { return ban[i]; } | int test2(int i) { return ban[i]; } | ||||
Context not available. |