Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
58c6b1f81c
commit
cfe502c598
1277 changed files with 48709 additions and 1 deletions
17
hw6/llprograms/certified_random_number_generator_soln.ll
Normal file
17
hw6/llprograms/certified_random_number_generator_soln.ll
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
define i64 @program(i64 %argc, i8** %arcv) {
|
||||
%p_lfsr = alloca i64
|
||||
store i64 8, i64* %p_lfsr
|
||||
br label %loop
|
||||
loop:
|
||||
%iter = load i64, i64* %p_lfsr
|
||||
%inc = add i64 %iter, 1
|
||||
store i64 %inc, i64* %p_lfsr
|
||||
br label %lfsr_step
|
||||
lfsr_step:
|
||||
store i64 4, i64* %p_lfsr
|
||||
br label %loop_end
|
||||
loop_end:
|
||||
%lfsr = load i64, i64* %p_lfsr
|
||||
ret i64 %lfsr
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue