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

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: make fixups part of address 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
« no previous file with comments | « tests_lit/llvm2ice_tests/ebp_args.ll ('k') | tests_lit/llvm2ice_tests/nop-insertion.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 424fe3a958208c435fb2ce088ff818ca5981e5f8..e37309fe6b1e7416eba0fea1d0bcdda58d67f1f9 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
« no previous file with comments | « tests_lit/llvm2ice_tests/ebp_args.ll ('k') | tests_lit/llvm2ice_tests/nop-insertion.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698