• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test if we recognize both the old and the new forms of a binary instruction.
2
3; REQUIRES: no_minimal_build
4
5; Checks that the new form of binary add (without flags argument) works.
6; RUN: %pnacl_sz -verbose inst,global_init -notranslate \
7; RUN:   -threads=0 -bitcode-as-text %p/Inputs/binop-newform.tbc \
8; RUN: | FileCheck %s
9
10; Checks that the old form of binary add (with flags argument) works.
11; RUN: %pnacl_sz -verbose inst,global_init -notranslate \
12; RUN:   -threads=0 -bitcode-as-text %p/Inputs/binop-oldform.tbc \
13; RUN: | FileCheck %s
14
15; CHECK: define internal i32 @Function(i32 %__0, i32 %__1) {
16; CHECK: __0:
17; CHECK:   %__2 = add i32 %__0, %__1
18; CHECK:   ret i32 %__2
19; CHECK: }
20