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

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

Issue 300563003: Subzero: Initial O2 lowering (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: 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
OLDNEW
1 ; 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
2 ; pooling of various float and double constants (including positive 2 ; pooling of various float and double constants (including positive
3 ; and negative NaN) within functions and across functions. Note that 3 ; and negative NaN) within functions and across functions. Note that
4 ; 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
5 ; the constant "cannot be represented as a decimal floating point 5 ; the constant "cannot be represented as a decimal floating point
6 ; number in a reasonable number of digits". See 6 ; number in a reasonable number of digits". See
7 ; http://llvm.org/docs/LangRef.html#simple-constants . 7 ; http://llvm.org/docs/LangRef.html#simple-constants .
8 8
9 ; RUN: %llvm2ice -Om1 --verbose none %s | FileCheck %s 9 ; RUN: %llvm2ice -Om1 --verbose none %s | FileCheck %s
10 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s
jvoung (off chromium) 2014/05/28 17:48:15 Nit: flip the O2 and Om1 for consistency w/ the re
Jim Stichnoth 2014/05/29 01:39:46 Done.
10 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 11 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
11 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 12 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
12 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ 13 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
13 ; RUN: | FileCheck --check-prefix=DUMP %s 14 ; RUN: | FileCheck --check-prefix=DUMP %s
14 15
15 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 16 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4
16 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 17 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4
17 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 18 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8
18 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 19 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4
19 20
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 542
542 ; Check for float 0.5 543 ; Check for float 0.5
543 ; CHECK: .long 0x3f000000 544 ; CHECK: .long 0x3f000000
544 ; CHECK-NOT: .long 0x3f000000 545 ; CHECK-NOT: .long 0x3f000000
545 ; Check for double 0.5 546 ; Check for double 0.5
546 ; CHECK: .quad 0x3fe0000000000000 547 ; CHECK: .quad 0x3fe0000000000000
547 ; CHECK-NOT: .quad 0x3fe0000000000000 548 ; CHECK-NOT: .quad 0x3fe0000000000000
548 549
549 ; ERRORS-NOT: ICE translation error 550 ; ERRORS-NOT: ICE translation error
550 ; DUMP-NOT: SZ 551 ; DUMP-NOT: SZ
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698