[llvm] r296926 - Revert r296865 "[ARM] fpscr read/write intrinsics not aware of each other"
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 3 15:19:31 PST 2017
Author: hans
Date: Fri Mar 3 17:19:31 2017
New Revision: 296926
URL: http://llvm.org/viewvc/llvm-project?rev=296926&view=rev
Log:
Revert r296865 "[ARM] fpscr read/write intrinsics not aware of each other"
It caused PR32134: "Cannot select: intrinsic %llvm.arm.get.fpscr".
Removed:
llvm/trunk/test/CodeGen/ARM/fpscr-intrinsics.ll
Modified:
llvm/trunk/include/llvm/IR/IntrinsicsARM.td
Modified: llvm/trunk/include/llvm/IR/IntrinsicsARM.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IntrinsicsARM.td?rev=296926&r1=296925&r2=296926&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IntrinsicsARM.td (original)
+++ llvm/trunk/include/llvm/IR/IntrinsicsARM.td Fri Mar 3 17:19:31 2017
@@ -67,7 +67,7 @@ def int_arm_isb : GCCBuiltin<"__builtin_
// VFP
def int_arm_get_fpscr : GCCBuiltin<"__builtin_arm_get_fpscr">,
- Intrinsic<[llvm_i32_ty], [], []>;
+ Intrinsic<[llvm_i32_ty], [], [IntrNoMem]>;
def int_arm_set_fpscr : GCCBuiltin<"__builtin_arm_set_fpscr">,
Intrinsic<[], [llvm_i32_ty], []>;
def int_arm_vcvtr : Intrinsic<[llvm_float_ty], [llvm_anyfloat_ty],
Removed: llvm/trunk/test/CodeGen/ARM/fpscr-intrinsics.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/fpscr-intrinsics.ll?rev=296925&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/fpscr-intrinsics.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/fpscr-intrinsics.ll (removed)
@@ -1,23 +0,0 @@
-; RUN: llc < %s -O0 -mtriple=armv7-eabi -mcpu=cortex-a8 | FileCheck %s
-; RUN: llc < %s -O3 -mtriple=armv7-eabi -mcpu=cortex-a8 | FileCheck %s
-
-; Function Attrs: nounwind
-define void @fn1(i32* nocapture %p) local_unnamed_addr {
-entry:
- ; CHECK: vmrs r{{[0-9]+}}, fpscr
- %0 = tail call i32 @llvm.arm.get.fpscr()
- store i32 %0, i32* %p, align 4
- ; CHECK: vmsr fpscr, r{{[0-9]+}}
- tail call void @llvm.arm.set.fpscr(i32 1)
- ; CHECK: vmrs r{{[0-9]+}}, fpscr
- %1 = tail call i32 @llvm.arm.get.fpscr()
- %arrayidx1 = getelementptr inbounds i32, i32* %p, i32 1
- store i32 %1, i32* %arrayidx1, align 4
- ret void
-}
-
-; Function Attrs: nounwind readonly
-declare i32 @llvm.arm.get.fpscr()
-
-; Function Attrs: nounwind writeonly
-declare void @llvm.arm.set.fpscr(i32)
More information about the llvm-commits
mailing list