annotate clang/test/CodeGenObjC/compound-literal-property-access.m @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1f2b6ac9f198
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
1 // RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s
150
anatofuz
parents:
diff changeset
2 // rdar://20407999
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 typedef __attribute__((__ext_vector_type__(2))) float vector_float2;
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 @interface GPAgent2D
anatofuz
parents:
diff changeset
7 @property (nonatomic, assign) vector_float2 position;
anatofuz
parents:
diff changeset
8 @end
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 @interface GPGoal @end
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 @implementation GPGoal
anatofuz
parents:
diff changeset
13 -(void)getForce {
anatofuz
parents:
diff changeset
14 GPAgent2D* targetAgent;
anatofuz
parents:
diff changeset
15 (vector_float2){targetAgent.position.x, targetAgent.position.y};
anatofuz
parents:
diff changeset
16 }
anatofuz
parents:
diff changeset
17 @end
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 // CHECK: [[CL:%.*]] = alloca <2 x float>, align 8
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
20 // CHECK: store <2 x float> [[VECINIT:%.*]], ptr [[CL]]
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
21 // CHECK: [[FOURTEEN:%.*]] = load <2 x float>, ptr [[CL]]