c_check: fix syntax
This commit is contained in:
parent
a7b248631b
commit
9c098b02a2
4
c_check
4
c_check
|
@ -222,10 +222,10 @@ if [ "$architecture" = "x86" ] || [ "$architecture" = "x86_64" ]; then
|
||||||
rm -rf "$tmpd"
|
rm -rf "$tmpd"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
no_rv64gv= 0;
|
no_rv64gv=0
|
||||||
if [ "$architecture" = "riscv64" ]; then
|
if [ "$architecture" = "riscv64" ]; then
|
||||||
tmpd=`mktemp -d`
|
tmpd=`mktemp -d`
|
||||||
tmpf="$tmpd/a.c
|
tmpf="$tmpd/a.c"
|
||||||
code='"vsetvli zero, zero, e8, m1\n"'
|
code='"vsetvli zero, zero, e8, m1\n"'
|
||||||
printf "int main(void){ __asm__ volatile(%s); }\n" "$code" >> "$tmpf"
|
printf "int main(void){ __asm__ volatile(%s); }\n" "$code" >> "$tmpf"
|
||||||
args=" -march=rv64gv -c -o $tmpf.o $tmpf"
|
args=" -march=rv64gv -c -o $tmpf.o $tmpf"
|
||||||
|
|
Loading…
Reference in New Issue