CS153/hw6/llprograms/bitcast1.ll
jmug cfe502c598 Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-24 18:59:28 -08:00

9 lines
200 B
LLVM

define i64 @main(i64 %argc, i8** %argv) {
%1 = alloca i64
store i64 3, i64* %1
%2 = bitcast i64* %1 to [10 x i64]*
%3 = bitcast [10 x i64]* %2 to i64*
%4 = load i64, i64* %3
ret i64 %4
}