Fix target specific InstCombine
authorSebastian Neubauer <sebastian.neubauer@amd.com>
Wed, 22 Jul 2020 15:00:43 +0000 (17:00 +0200)
committerSebastian Neubauer <sebastian.neubauer@amd.com>
Wed, 22 Jul 2020 15:00:46 +0000 (17:00 +0200)
A clang arm test was failing if clang is compiled without arm support.

Regression was introduced in 2a6c871596ce8bdd23501a96fd22f0f16d3cfcad

clang/test/CodeGen/aarch64-bf16-ldst-intrinsics.c

index 2ccfb0c..6772c37 100644 (file)
@@ -3,6 +3,8 @@
 // RUN: %clang_cc1 -triple armv8.6a-arm-none-eabi -target-feature +neon -target-feature +bf16 -mfloat-abi hard \
 // RUN:  -O2 -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK32
 
+// REQUIRES: arm-registered-target,aarch64-registered-target
+
 #include "arm_neon.h"
 
 bfloat16x4_t test_vld1_bf16(bfloat16_t const *ptr) {