by@n4o847
WA
484ms
define i32 @main() { %1 = alloca i8, align 1 call i32 @getchar(i8* %1) %2 = load i8, i8* %1, align 1 %3 = sext i8 %2 to i32 %4 = call i32 @putchar(i32 %3) ret i32 0 } declare i32 @putchar(i8) declare i32 @getchar(i8*)
19 31 31 31 03 51 10 16 07 77 79 06
/usr/bin/llc: /tmp/code.ll:4:3: error: instruction expected to be numbered '%3' %2 = load i8, i8* %1, align 1 ^ gcc: error: /tmp/code.o: No such file or directory gcc: fatal error: no input files compilation terminated. /bin/script: line 17: /tmp/code: not found