You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scalars will widen to vectors, so you can just do int[<4>] v1 = 2 and it will become {2, 2, 2, 2}
I can reproduce it with both with and without the splat macro on
C3 Compiler Version: 0.6.7 (Pre-release, Feb 10 2025 21:03:54)
Installed directory: /var/home/user/git/c3c/bin/
Git Hash: 8668027
Backends: LLVM
LLVM version: 18.1.8
LLVM default target: x86_64-pc-linux-gnu
c3c compile-run a.c3
Program linked to executable 'a'.
Launching ./a
hello world [<false, false, false, false>]
which is correct.
c3c compile-run -O2 a.c3
Program linked to executable 'a'.
Launching ./a
hello world [<false, true, false, false>]
Program completed with exit code 0.
which is not.
❯ c3c --version
C3 Compiler Version: 0.6.7 (Pre-release, Feb 10 2025 19:29:00)
Installed directory: /Users/penghe/src/c3c/build/
Git Hash: b46d394
Backends: LLVM
LLVM version: 18.1.8
LLVM default target: x86_64-apple-darwin23.4.0
The text was updated successfully, but these errors were encountered: