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

Side by Side Diff: tests_lit/llvm2ice_tests/fpconst.pnacl.ll

Issue 265703002: Add Om1 lowering with no optimizations (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Merge changed from Karl's committed CL Created 6 years, 7 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 unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/fp.pnacl.ll ('k') | tests_lit/llvm2ice_tests/global.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
2 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
3 ; RUN: | FileCheck --check-prefix=DUMP %s
4
5 ; This is a smoke test for floating-point constant pooling. It tests 1 ; This is a smoke test for floating-point constant pooling. It tests
6 ; pooling of various float and double constants (including positive 2 ; pooling of various float and double constants (including positive
7 ; and negative NaN) within functions and across functions. Note that 3 ; and negative NaN) within functions and across functions. Note that
8 ; in LLVM bitcode, hex constants are used for an FP constant whenever 4 ; in LLVM bitcode, hex constants are used for an FP constant whenever
9 ; the constant "cannot be represented as a decimal floating point 5 ; the constant "cannot be represented as a decimal floating point
10 ; number in a reasonable number of digits". See 6 ; number in a reasonable number of digits". See
11 ; http://llvm.org/docs/LangRef.html#simple-constants . 7 ; http://llvm.org/docs/LangRef.html#simple-constants .
12 8
9 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
10 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
11 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
12 ; RUN: | FileCheck --check-prefix=DUMP %s
13
13 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 14 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4
14 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 15 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4
15 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 16 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8
16 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 17 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4
17 18
18 define internal float @FpLookup1(i32 %Arg) { 19 define internal float @FpLookup1(i32 %Arg) {
19 entry: 20 entry:
20 switch i32 %Arg, label %return [ 21 switch i32 %Arg, label %return [
21 i32 0, label %sw.bb 22 i32 0, label %sw.bb
22 i32 1, label %sw.bb1 23 i32 1, label %sw.bb1
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 %add68 = fadd double %conv67, 0xFFF8000000000000 529 %add68 = fadd double %conv67, 0xFFF8000000000000
529 br label %return 530 br label %return
530 531
531 return: ; preds = %entry, %sw.bb65, %s w.bb61, %sw.bb57, %sw.bb53, %sw.bb49, %sw.bb45, %sw.bb41, %sw.bb37, %sw.bb33, %s w.bb29, %sw.bb25, %sw.bb21, %sw.bb17, %sw.bb13, %sw.bb9, %sw.bb5, %sw.bb1, %sw.b b 532 return: ; preds = %entry, %sw.bb65, %s w.bb61, %sw.bb57, %sw.bb53, %sw.bb49, %sw.bb45, %sw.bb41, %sw.bb37, %sw.bb33, %s w.bb29, %sw.bb25, %sw.bb21, %sw.bb17, %sw.bb13, %sw.bb9, %sw.bb5, %sw.bb1, %sw.b b
532 %retval.0 = phi double [ %add68, %sw.bb65 ], [ %add64, %sw.bb61 ], [ %add60, % sw.bb57 ], [ %add56, %sw.bb53 ], [ %add52, %sw.bb49 ], [ %conv48, %sw.bb45 ], [ %conv44, %sw.bb41 ], [ %conv40, %sw.bb37 ], [ %conv36, %sw.bb33 ], [ %add32, %sw .bb29 ], [ %add28, %sw.bb25 ], [ %add24, %sw.bb21 ], [ %add20, %sw.bb17 ], [ %ad d16, %sw.bb13 ], [ %conv12, %sw.bb9 ], [ %conv8, %sw.bb5 ], [ %conv4, %sw.bb1 ], [ %conv, %sw.bb ], [ 0.000000e+00, %entry ] 533 %retval.0 = phi double [ %add68, %sw.bb65 ], [ %add64, %sw.bb61 ], [ %add60, % sw.bb57 ], [ %add56, %sw.bb53 ], [ %add52, %sw.bb49 ], [ %conv48, %sw.bb45 ], [ %conv44, %sw.bb41 ], [ %conv40, %sw.bb37 ], [ %conv36, %sw.bb33 ], [ %add32, %sw .bb29 ], [ %add28, %sw.bb25 ], [ %add24, %sw.bb21 ], [ %add20, %sw.bb17 ], [ %ad d16, %sw.bb13 ], [ %conv12, %sw.bb9 ], [ %conv8, %sw.bb5 ], [ %conv4, %sw.bb1 ], [ %conv, %sw.bb ], [ 0.000000e+00, %entry ]
533 ret double %retval.0 534 ret double %retval.0
534 } 535 }
535 536
536 ; ERRORS-NOT: ICE translation error 537 ; ERRORS-NOT: ICE translation error
537 ; DUMP-NOT: SZ 538 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/fp.pnacl.ll ('k') | tests_lit/llvm2ice_tests/global.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698