Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CodeGen/address-space-field1.c
// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 < %s -o - | FileCheck %s | // RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 < %s -o - | FileCheck %s | ||||
// CHECK:%struct.S = type { i32, i32 } | // CHECK:%struct.S = type { i32, i32 } | ||||
// CHECK:define void @test_addrspace(%struct.S addrspace(1)* %p1, %struct.S addrspace(2)* %p2) [[NUW:#[0-9]+]] | // CHECK:define void @test_addrspace(%struct.S addrspace(1)* noundef %p1, %struct.S addrspace(2)* noundef %p2) [[NUW:#[0-9]+]] | ||||
// CHECK: [[p1addr:%.*]] = alloca %struct.S addrspace(1)* | // CHECK: [[p1addr:%.*]] = alloca %struct.S addrspace(1)* | ||||
// CHECK: [[p2addr:%.*]] = alloca %struct.S addrspace(2)* | // CHECK: [[p2addr:%.*]] = alloca %struct.S addrspace(2)* | ||||
// CHECK: store %struct.S addrspace(1)* %p1, %struct.S addrspace(1)** [[p1addr]] | // CHECK: store %struct.S addrspace(1)* %p1, %struct.S addrspace(1)** [[p1addr]] |