Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: tests_lit/llvm2ice_tests/fp.pnacl.ll

Issue 476323004: Start adding an integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: simplify Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests_lit/llvm2ice_tests/fp.pnacl.ll
diff --git a/tests_lit/llvm2ice_tests/fp.pnacl.ll b/tests_lit/llvm2ice_tests/fp.pnacl.ll
index ab2f439f78a2cd084debd3c50706efbabd807cc8..3111d7bb803765b974451d4200aff9ef183ff130 100644
--- a/tests_lit/llvm2ice_tests/fp.pnacl.ll
+++ b/tests_lit/llvm2ice_tests/fp.pnacl.ll
@@ -124,6 +124,15 @@ entry:
; CHECK: addss
; CHECK: fld
+define internal float @addFloatImm(float %a) {
+entry:
+ %add = fadd float %a, 1.0
+ ret float %add
+}
+; CHECK-LABEL: addFloatImm
+; CHECK: addss
+; CHECK: fld
+
define internal double @addDouble(double %a, double %b) {
entry:
%add = fadd double %a, %b
@@ -133,6 +142,16 @@ entry:
; CHECK: addsd
; CHECK: fld
+define internal double @addDoubleImm(double %a) {
+entry:
+ %add = fadd double %a, 1.0
+ ret double %add
+}
+; CHECK-LABEL: addDoubleImm
+; CHECK: addsd
+; CHECK: fld
+
+
define internal float @subFloat(float %a, float %b) {
entry:
%sub = fsub float %a, %b

Powered by Google App Engine
This is Rietveld 408576698