Skip to content

Commit

Permalink
test: Update vast-front invokes.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Oct 25, 2023
1 parent 16f2d8a commit 2b33164
Show file tree
Hide file tree
Showing 185 changed files with 366 additions and 363 deletions.
2 changes: 1 addition & 1 deletion test/query/simple.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-query --show-symbols=functions %t | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-query --show-symbols=functions %t | %file-check %s

// CHECK: func : main
int main() {}
10 changes: 5 additions & 5 deletions test/query/symbols.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && \
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && \
// RUN: %vast-query --show-symbols=all %t | \
// RUN: %file-check %s -check-prefix=FOO-VAR -check-prefix=MAIN-VAR -check-prefix=FUN

// RUN: %vast-cc --ccopts -xc --from-source %s > %t && \
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && \
// RUN: %vast-query --show-symbols=vars %t | \
// RUN: %file-check %s -check-prefix=FOO-VAR -check-prefix=MAIN-VAR

// RUN: %vast-cc --ccopts -xc --from-source %s > %t && \
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && \
// RUN: %vast-query --show-symbols=vars %t --scope=foo | \
// RUN: %file-check %s -check-prefix=FOO-VAR

// RUN: %vast-cc --ccopts -xc --from-source %s > %t && \
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && \
// RUN: %vast-query --show-symbols=vars %t --scope=main | \
// RUN: %file-check %s -check-prefix=MAIN-VAR

// RUN: %vast-cc --ccopts -xc --from-source %s > %t && \
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && \
// RUN: %vast-query --show-symbols=functions %t | \
// RUN: %file-check %s -check-prefix=FUN

Expand Down
6 changes: 3 additions & 3 deletions test/query/users.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && \
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && \
// RUN: %vast-query --symbol-users=a %t | \
// RUN: %file-check %s -check-prefix=MAIN -check-prefix=FOO

// RUN: %vast-cc --ccopts -xc --from-source %s > %t && \
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && \
// RUN: %vast-query --symbol-users=a --scope=main %t | \
// RUN: %file-check %s -check-prefix=MAIN

// RUN: %vast-cc --ccopts -xc --from-source %s > %t && \
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && \
// RUN: %vast-query --symbol-users=a --scope=foo %t | \
// RUN: %file-check %s -check-prefix=FOO

Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/CoreToLLVM/binland-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-hl-to-lazy-regions --vast-irs-to-llvm --vast-core-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-hl-to-lazy-regions --vast-irs-to-llvm --vast-core-to-llvm | %file-check %s

int fun(int arg1, int arg2) {
int res = arg1 && arg2;
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/CoreToLLVM/binlor-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-hl-to-lazy-regions --vast-irs-to-llvm --vast-core-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-hl-to-lazy-regions --vast-irs-to-llvm --vast-core-to-llvm | %file-check %s

int fun(int arg1, int arg2) {
int res = arg1 || arg2;
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/add-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: i32, %arg1: i32) -> i32 {
int fn(int arg0, int arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/addfloat-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: f32, %arg1: f32) -> f32 {
float fn(float arg0, float arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/array-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

void count()
{
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/array-b.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

void count()
{
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/bin_not.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-splice-trailing-scopes --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-splice-trailing-scopes --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

int main() {
int a = 5;
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/divfloat-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: f32, %arg1: f32) -> f32 {
float fn(float arg0, float arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/divsigned-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: i32, %arg1: i32) -> i32 {
int fn(int arg0, int arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/divunsigned-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: i32, %arg1: i32) -> i32 {
unsigned int fn(unsigned int arg0, unsigned int arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/float-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

void count()
{
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/fn-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn() {
void fn()
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/fn-b.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn() -> i32 {
int fn()
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/hl-assign-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @count([[ARG:%arg[0-9]+]]: i32)
void count(int arg)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/hl-assign-b.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @count([[ARG:%arg[0-9]+]]: i32)
void count(int arg)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/hl-assign-c.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

void count()
{
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/mul-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: i32, %arg1: i32) -> i32 {
int fn(int arg0, int arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/mulfloat-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: f32, %arg1: f32) -> f32 {
float fn(float arg0, float arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/not-float.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

int main() {
float a = 5;
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/not.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

int main() {
int a = 5;
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/remsigned-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: i32, %arg1: i32) -> i32 {
int fn(int arg0, int arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/remunsigned-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: i32, %arg1: i32) -> i32 {
unsigned int fn(unsigned int arg0, unsigned int arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/sizeof-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

unsigned long sizeof_int() {
// CHECK: llvm.mlir.constant(4 : i64) : i64
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/sub-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: i32, %arg1: i32) -> i32 {
int fn(int arg0, int arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/Common/IRsToLLVM/subfloat-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-types --vast-hl-to-ll-cf --vast-hl-to-ll-vars --vast-irs-to-llvm | %file-check %s

// CHECK: llvm.func @fn(%arg0: f32, %arg1: f32) -> f32 {
float fn(float arg0, float arg1)
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/FromHL/ToLLCF/for-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-dce --vast-hl-lower-types --vast-hl-to-ll-cf | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-dce --vast-hl-lower-types --vast-hl-to-ll-cf | %file-check %s

void fn()
{
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/FromHL/ToLLCF/for-b.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-dce --vast-hl-lower-types --vast-hl-to-ll-cf | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-dce --vast-hl-lower-types --vast-hl-to-ll-cf | %file-check %s

int fn()
{
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Conversion/FromHL/ToLLVars/vars-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-dce --vast-hl-lower-types --vast-hl-to-ll-vars | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-dce --vast-hl-lower-types --vast-hl-to-ll-vars | %file-check %s

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Dialect/Core/binlop-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-to-lazy-regions | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-to-lazy-regions | %file-check %s

void logic_assign_to_different_type() {
// CHECK: [[L:%[0-9]+]] = core.lazy.op {
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Dialect/Core/binlop-b.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %vast-opt --vast-hl-to-lazy-regions | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-to-lazy-regions | %file-check %s

void logic_assign_to_different_type() {
// CHECK: [[L:%[0-9]+]] = core.lazy.op {
Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/add-a.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

void plus(int arg1, int arg2) {

Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/addfloat-a.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

void plus(float arg1, float arg2) {

Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/alignof-a.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

int main() {
// CHECK: hl.alignof.type !hl.int -> !hl.long< unsigned >
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -Wno-gnu-statement-expression --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -Wno-gnu-statement-expression --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl -Wno-gnu-statement-expression %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl -Wno-gnu-statement-expression %s -o %t && %vast-opt %t | diff -B %t -

int main() {
// CHECK: hl.alignof.type !hl.int -> !hl.long< unsigned >
Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/array-a.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

// CHECK: hl.var "ai" : !hl.lvalue<!hl.array<10, !hl.int>>
int ai[10];
Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/array-b.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

// CHECK: hl.var "earr" sc_extern : !hl.lvalue<!hl.array<?, !hl.int>>
extern int earr[];
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/array-c.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

// CHECK: hl.var "cai" : !hl.lvalue<!hl.array<3, !hl.int< const >>> = {
// CHECK: [[V1:%[0-9]+]] = hl.const #core.integer<1> : !hl.int
Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/array-d.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

// TODO decl.ref registers

Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/array-e.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

void foo(int size) {
// CHECK: hl.var "arr" : !hl.lvalue<!hl.array<?, !hl.int>> allocation_size {
Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/assign-a.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

int a, b;

Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/assign-b.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

short a;

Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/attr-a.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

// CHECK: hl.typedef "u64" : !hl.longlong< unsigned >
typedef unsigned long long u64;
Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/bit-field-a.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

struct S1 {
// CHECK: hl.field "a" : !hl.int< unsigned >
Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/bits-a.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

#define CHAR_BIT 8

Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/bits-b.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

// CHECK: hl.func @oposite_signs ([[A1:%arg[0-9]+]]: !hl.lvalue<!hl.int>, [[A2:%arg[0-9]+]]: !hl.lvalue<!hl.int>) -> !hl.bool {
_Bool oposite_signs(int x, int y) {
Expand Down
5 changes: 2 additions & 3 deletions test/vast/Dialect/HighLevel/branch-a.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --from-source %s | %file-check %s
// RUN: %vast-cc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

// CHECK-LABEL: hl.func @_Z10branch_retii
int branch_ret(int a, int b)
Expand All @@ -18,7 +18,6 @@ int branch_ret(int a, int b)
// CHECK: hl.return [[V3]]
return 1;
}
// CHECK: hl.unreachable
}

// CHECK-LABEL: hl.func @_Z11branch_thenii
Expand Down
4 changes: 2 additions & 2 deletions test/vast/Dialect/HighLevel/calls-a.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %vast-cc --ccopts -xc --from-source %s | %file-check %s
// RUN: %vast-cc --ccopts -xc --from-source %s > %t && %vast-opt %t | diff -B %t -
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -

int constant() { return 7; }

Expand Down
Loading

0 comments on commit 2b33164

Please sign in to comment.