Revert "make reciprocal estimate code generation more flexible by adding command...
[oota-llvm.git] / test / CodeGen / Hexagon / opt-fabs.ll
index 1cf0dd0cd994b4f2484e9275879dc019cdb19cd3..da657e4b1b8fef212cd4b9bcb288bc3cda33f8d2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=hexagon -mcpu=hexagonv5  < %s | FileCheck %s
+; RUN: llc -mtriple=hexagon-unknown-elf -mcpu=hexagonv5  < %s | FileCheck %s
 ; Optimize fabsf to clrbit in V5.
 
 ; CHECK: r{{[0-9]+}} = clrbit(r{{[0-9]+}}, #31)
@@ -7,8 +7,8 @@ define float @my_fabsf(float %x) nounwind {
 entry:
   %x.addr = alloca float, align 4
   store float %x, float* %x.addr, align 4
-  %0 = load float* %x.addr, align 4
-  %call = call float @fabsf(float %0)
+  %0 = load float, float* %x.addr, align 4
+  %call = call float @fabsf(float %0) readnone
   ret float %call
 }