[llvm-bugs] [Bug 26894] New: arm_neon_intrinsics.c test fails
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Mar 9 19:54:15 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26894
Bug ID: 26894
Summary: arm_neon_intrinsics.c test fails
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: rtrieu at google.com
CC: llvm-bugs at lists.llvm.org, t.p.northover at gmail.com
Classification: Unclassified
arm_neon_intrinsics.c test has two problems. The last change to this test was
in r263048. This test is marked "REQUIRES: long_tests" which hides this test
from most configs.
1) The RUN line is incorrect:
// RUN: %clang_cc1 -triple thumbv7s-apple-darwin -target-abi apcs-gnu\
// RUN: -target-cpu swift -ffreestanding -emit-llvm -S -o - %s\
// RUN: opt -S -mem2reg | FileCheck %s
Clang doesn't need the -S flag, and opt is an argument to Clang due to a
missing pipe. This is fixed to:
// RUN: %clang_cc1 -triple thumbv7s-apple-darwin -target-abi apcs-gnu\
// RUN: -target-cpu swift -ffreestanding -emit-llvm -o - %s\
// RUN: | opt -S -mem2reg | FileCheck %s
2)
Even with the fixed RUN line, the FileCheck fails due to multiple errors. Here
is the start of it:
llvm/tools/clang/test/CodeGen/arm_neon_intrinsics.c:9:11: error: expected
string not found in input
// CHECK: [[VABD_I_I:%.*]] = call <8 x i8> @llvm.aarch64.neon.sabd.v8i8(<8 x
i8> %b, <8 x i8> %c) #4
^
<stdin>:74:1: note: scanning from here
entry:
^
<stdin>:75:9: note: possible intended match here
%vabd_v.i.i = call <8 x i8> @llvm.arm.neon.vabds.v8i8(<8 x i8> %b, <8 x i8>
%c) #4
^
llvm/tools/clang/test/CodeGen/arm_neon_intrinsics.c:21:11: error: expected
string not found in input
// CHECK: [[VABD2_I_I:%.*]] = call <4 x i16> @llvm.aarch64.neon.sabd.v4i16(<4 x
i16> [[VABD_I_I]], <4 x i16> [[VABD1_I_I]]) #4
^
<stdin>:87:2: note: scanning from here
%vabd_v2.i.i = call <4 x i16> @llvm.arm.neon.vabds.v4i16(<4 x i16>
%vabd_v.i.i, <4 x i16> %vabd_v1.i.i) #4
^
<stdin>:87:2: note: with variable "VABD_I_I" equal to "%vabd_v.i.i"
%vabd_v2.i.i = call <4 x i16> @llvm.arm.neon.vabds.v4i16(<4 x i16>
%vabd_v.i.i, <4 x i16> %vabd_v1.i.i) #4
^
<stdin>:87:2: note: with variable "VABD1_I_I" equal to "%vabd_v1.i.i"
%vabd_v2.i.i = call <4 x i16> @llvm.arm.neon.vabds.v4i16(<4 x i16>
%vabd_v.i.i, <4 x i16> %vabd_v1.i.i) #4
^
<stdin>:87:10: note: possible intended match here
%vabd_v2.i.i = call <4 x i16> @llvm.arm.neon.vabds.v4i16(<4 x i16>
%vabd_v.i.i, <4 x i16> %vabd_v1.i.i) #4
^
llvm/tools/clang/test/CodeGen/arm_neon_intrinsics.c:33:11: error: expected
string not found in input
// CHECK: [[VABD2_I_I:%.*]] = call <2 x i32> @llvm.aarch64.neon.sabd.v2i32(<2 x
i32> [[VABD_I_I]], <2 x i32> [[VABD1_I_I]]) #4
^
<stdin>:101:2: note: scanning from here
%vabd_v2.i.i = call <2 x i32> @llvm.arm.neon.vabds.v2i32(<2 x i32>
%vabd_v.i.i, <2 x i32> %vabd_v1.i.i) #4
^
<stdin>:101:2: note: with variable "VABD_I_I" equal to "%vabd_v.i.i"
%vabd_v2.i.i = call <2 x i32> @llvm.arm.neon.vabds.v2i32(<2 x i32>
%vabd_v.i.i, <2 x i32> %vabd_v1.i.i) #4
^
<stdin>:101:2: note: with variable "VABD1_I_I" equal to "%vabd_v1.i.i"
%vabd_v2.i.i = call <2 x i32> @llvm.arm.neon.vabds.v2i32(<2 x i32>
%vabd_v.i.i, <2 x i32> %vabd_v1.i.i) #4
^
<stdin>:101:10: note: possible intended match here
%vabd_v2.i.i = call <2 x i32> @llvm.arm.neon.vabds.v2i32(<2 x i32>
%vabd_v.i.i, <2 x i32> %vabd_v1.i.i) #4
^
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160310/a7788477/attachment-0001.html>
More information about the llvm-bugs
mailing list