llvm.org GIT mirror llvm / 966b579
Added missing test for [ARM] AttributeParser. Check that build attribute Tag_Advanced_SIMD_arch is set correctly when targeting v8.1-a NEON. Differential Revision: http://reviews.llvm.org/D13281 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249304 91177308-0d34-0410-b5e6-96231b3b80d8 Alexandros Lamprineas 4 years ago
2 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1313 @CHECK-OBJ-NEXT: Value: 4
1414 @CHECK-OBJ-NEXT: TagName: FP_arch
1515 @CHECK-OBJ-NEXT: Description: VFPv3-D16
16
17 .eabi_attribute Tag_Advanced_SIMD_arch, 4
18 @CHECK: .eabi_attribute 12, 4
19 @CHECK-OBJ: Tag: 12
20 @CHECK-OBJ-NEXT: Value: 4
21 @CHECK-OBJ-NEXT: TagName: Advanced_SIMD_arch
22 @CHECK-OBJ-NEXT: Description: ARMv8.1-a NEON
1623
1724 .eabi_attribute Tag_PCS_config, 4
1825 @CHECK: .eabi_attribute 13, 4
192192 void ARMAttributeParser::Advanced_SIMD_arch(AttrType Tag, const uint8_t *Data,
193193 uint32_t &Offset) {
194194 static const char *Strings[] = {
195 "Not Permitted", "NEONv1", "NEONv2+FMA", "ARMv8-a NEON"
195 "Not Permitted", "NEONv1", "NEONv2+FMA", "ARMv8-a NEON", "ARMv8.1-a NEON"
196196 };
197197
198198 uint64_t Value = ParseInteger(Data, Offset);