diff options
Diffstat (limited to 'test/Expr')
-rw-r--r-- | test/Expr/Printer/MultiByteReads.pc | 17 | ||||
-rw-r--r-- | test/Expr/Printer/dg.exp | 3 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/Expr/Printer/MultiByteReads.pc b/test/Expr/Printer/MultiByteReads.pc new file mode 100644 index 00000000..af94b516 --- /dev/null +++ b/test/Expr/Printer/MultiByteReads.pc @@ -0,0 +1,17 @@ +# RUN: %kleaver -print-ast -pc-multibyte-reads=true %s >log +# RUN: grep -q "(ReadLSB w32 4 arr1)" log +# RUN: grep -q "(ReadMSB w32 2 arr2)" log + +(query [(Not (Slt 100 + (Concat w32 (Read w8 7 arr1) + (Concat w24 (Read w8 6 arr1) + (Concat w16 (Read w8 5 arr1) (Read w8 4 arr1))))))] + false) + + +(query [(Not (Slt 100 + (Concat w32 (Read w8 2 arr2) + (Concat w24 (Read w8 3 arr2) + (Concat w16 (Read w8 4 arr2) (Read w8 5 arr2))))))] + false) + diff --git a/test/Expr/Printer/dg.exp b/test/Expr/Printer/dg.exp new file mode 100644 index 00000000..94fc4df8 --- /dev/null +++ b/test/Expr/Printer/dg.exp @@ -0,0 +1,3 @@ +load_lib llvm.exp + +RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{pc}]] |