diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2011-08-30 17:04:16 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2011-08-30 17:04:16 +0000 |
commit | 0aaa9195b53e693eb8618fef305e3799b5b77771 (patch) | |
tree | ca220202dc4808cd9a032a9255fcc845a71a19fc /test/CodeGen/PowerPC/cr1eq.ll | |
parent | e7815c22fc1f6beb38500745904209d2c6bbf3fd (diff) | |
download | llvm-0aaa9195b53e693eb8618fef305e3799b5b77771.tar.gz llvm-0aaa9195b53e693eb8618fef305e3799b5b77771.tar.bz2 llvm-0aaa9195b53e693eb8618fef305e3799b5b77771.tar.xz |
Set CR1EQ only when lowering vararg floating arguments (not any vararg
arguments as before), unset CR1EQ otherwise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/cr1eq.ll')
-rw-r--r-- | test/CodeGen/PowerPC/cr1eq.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/cr1eq.ll b/test/CodeGen/PowerPC/cr1eq.ll new file mode 100644 index 0000000000..fb9c9695d1 --- /dev/null +++ b/test/CodeGen/PowerPC/cr1eq.ll @@ -0,0 +1,18 @@ +; RUN: llc < %s | FileCheck %s +; ModuleID = 'test.c' +target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32" +target triple = "powerpc-unknown-freebsd" + +@.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1 +@.str1 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1 + +define void @foo() nounwind { +entry: +; CHECK: crxor 6, 6, 6 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32 1) +; CHECK: creqv 6, 6, 6 + %call1 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str1, i32 0, i32 0), double 1.100000e+00) + ret void +} + +declare i32 @printf(i8*, ...) |