summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PTX
diff options
context:
space:
mode:
authorJustin Holewinski <justin.holewinski@gmail.com>2011-09-28 14:32:04 +0000
committerJustin Holewinski <justin.holewinski@gmail.com>2011-09-28 14:32:04 +0000
commit5e18b14ee2dd2bc51fc1c403eba8b3b5f4cb7ffb (patch)
tree4fa2f5950b8d8a54bf23ab0fe28adb423bbd5692 /llvm/test/CodeGen/PTX
parent21efa7d6e167f38a5bff1f68f507601839cec10d (diff)
downloadbcm5719-llvm-5e18b14ee2dd2bc51fc1c403eba8b3b5f4cb7ffb.tar.gz
bcm5719-llvm-5e18b14ee2dd2bc51fc1c403eba8b3b5f4cb7ffb.zip
PTX: MC-ize the PTX back-end (patch 1 of N)
Lay some groundwork for converting to MC-based asm printer. This is the first of probably many patches to bring the back-end back up-to-date with all of the recent MC changes. llvm-svn: 140697
Diffstat (limited to 'llvm/test/CodeGen/PTX')
-rw-r--r--llvm/test/CodeGen/PTX/add.ll2
-rw-r--r--llvm/test/CodeGen/PTX/mov.ll2
-rw-r--r--llvm/test/CodeGen/PTX/mul.ll2
-rw-r--r--llvm/test/CodeGen/PTX/sub.ll2
4 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/PTX/add.ll b/llvm/test/CodeGen/PTX/add.ll
index e20bcff9dd6..8b10d11cba7 100644
--- a/llvm/test/CodeGen/PTX/add.ll
+++ b/llvm/test/CodeGen/PTX/add.ll
@@ -57,7 +57,7 @@ define ptx_device i64 @t2_u64(i64 %x) {
}
define ptx_device float @t2_f32(float %x) {
-; CHECK: add.rn.f32 %ret{{[0-9]+}}, %f{{[0-9]+}}, 0F3F800000;
+; CHECK: add.rn.f32 %ret{{[0-9]+}}, %f{{[0-9]+}}, 0D3FF0000000000000;
; CHECK: ret;
%z = fadd float %x, 1.0
ret float %z
diff --git a/llvm/test/CodeGen/PTX/mov.ll b/llvm/test/CodeGen/PTX/mov.ll
index 176f8b12f15..75555a7c5e9 100644
--- a/llvm/test/CodeGen/PTX/mov.ll
+++ b/llvm/test/CodeGen/PTX/mov.ll
@@ -19,7 +19,7 @@ define ptx_device i64 @t1_u64() {
}
define ptx_device float @t1_f32() {
-; CHECK: mov.f32 %ret{{[0-9]+}}, 0F00000000;
+; CHECK: mov.f32 %ret{{[0-9]+}}, 0D0000000000000000;
; CHECK: ret;
ret float 0.0
}
diff --git a/llvm/test/CodeGen/PTX/mul.ll b/llvm/test/CodeGen/PTX/mul.ll
index c05b61a62d3..91949db73c3 100644
--- a/llvm/test/CodeGen/PTX/mul.ll
+++ b/llvm/test/CodeGen/PTX/mul.ll
@@ -25,7 +25,7 @@ define ptx_device double @t1_f64(double %x, double %y) {
}
define ptx_device float @t2_f32(float %x) {
-; CHECK: mul.rn.f32 %ret{{[0-9]+}}, %f{{[0-9]+}}, 0F40A00000;
+; CHECK: mul.rn.f32 %ret{{[0-9]+}}, %f{{[0-9]+}}, 0D4014000000000000;
; CHECK: ret;
%z = fmul float %x, 5.0
ret float %z
diff --git a/llvm/test/CodeGen/PTX/sub.ll b/llvm/test/CodeGen/PTX/sub.ll
index f3e2770306f..7ac886ad645 100644
--- a/llvm/test/CodeGen/PTX/sub.ll
+++ b/llvm/test/CodeGen/PTX/sub.ll
@@ -57,7 +57,7 @@ define ptx_device i64 @t2_u64(i64 %x) {
}
define ptx_device float @t2_f32(float %x) {
-; CHECK: add.rn.f32 %ret{{[0-9]+}}, %f{{[0-9]+}}, 0FBF800000;
+; CHECK: add.rn.f32 %ret{{[0-9]+}}, %f{{[0-9]+}}, 0DBFF0000000000000;
; CHECK: ret;
%z = fsub float %x, 1.0
ret float %z
OpenPOWER on IntegriCloud