Allow AVX vrsqrtps generation.
[oota-llvm.git] / test / CodeGen / PowerPC / ppc64-calls.ll
index 396a5e25caf73469d895c7dfe007db44547bb562..31794be25beb9ee2575b9981d1250e61705848f9 100644 (file)
@@ -42,6 +42,21 @@ define void @test_indirect(void ()* nocapture %fp) nounwind {
   ret void
 }
 
+; Absolute values must use the regular indirect call sequence
+; The main purpose of this test is to ensure that BLA is not
+; used on 64-bit SVR4 (as e.g. on Darwin).
+define void @test_abs() nounwind {
+; CHECK-LABEL: test_abs:
+  tail call void inttoptr (i64 1024 to void ()*)() nounwind
+; CHECK: ld [[FP:[0-9]+]], 1024(0)
+; CHECK: ld 11, 1040(0)
+; CHECK: ld 2, 1032(0)
+; CHECK-NEXT: mtctr [[FP]]
+; CHECK-NEXT: bctrl
+; CHECK-NEXT: ld 2, 40(1)
+  ret void
+}
+
 declare double @sin(double) nounwind
 
 ; External functions call should also have a 'nop'