21 lines · plain
1// RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s2 3typedef __attribute__((__ext_vector_type__(2))) float vector_float2;4 5@interface GPAgent2D6@property (nonatomic, assign) vector_float2 position;7@end8 9@interface GPGoal @end10 11@implementation GPGoal12-(void)getForce {13 GPAgent2D* targetAgent;14 (vector_float2){targetAgent.position.x, targetAgent.position.y};15}16@end17 18// CHECK: [[CL:%.*]] = alloca <2 x float>, align 819// CHECK: store <2 x float> [[VECINIT:%.*]], ptr [[CL]]20// CHECK: [[FOURTEEN:%.*]] = load <2 x float>, ptr [[CL]]21