diff options
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/fsqrt.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/fsqrt.ll | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/PowerPC/fsqrt.ll b/llvm/test/CodeGen/PowerPC/fsqrt.ll index d7b8e57523b..6eb7dcfd7ba 100644 --- a/llvm/test/CodeGen/PowerPC/fsqrt.ll +++ b/llvm/test/CodeGen/PowerPC/fsqrt.ll @@ -1,14 +1,16 @@ ; fsqrt should be generated when the fsqrt feature is enabled, but not ; otherwise. -; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-apple-darwin8 -mattr=+fsqrt | \ -; RUN: grep "fsqrt f1, f1" -; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \ -; RUN: grep "fsqrt f1, f1" -; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-apple-darwin8 -mattr=-fsqrt | \ -; RUN: not grep "fsqrt f1, f1" -; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-apple-darwin8 -mcpu=g4 | \ -; RUN: not grep "fsqrt f1, f1" +; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-unknown-linux-gnu -mattr=+fsqrt | FileCheck %s -check-prefix=SQRT +; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-unknown-linux-gnu -mattr=-fsqrt | FileCheck %s -check-prefix=NSQRT + +; SQRT: X: +; SQRT: fsqrt 1, 1 +; SQRT: blr + +; NSQRT: X: +; NSQRT-NOT: fsqrt 1, 1 +; NSQRT: blr declare double @llvm.sqrt.f64(double) |