Displaying 2 results from an estimated 2 matches for "0b100001".
Did you mean:
00100001
2018 Dec 06
2
New to LLVM. Need help generating assembly
...ment the stack pointer by 'amount' (i.e. sp = sp + amount). During assembly generation, the string that gets emitted is "ADS $SP" rather than "ADS 10", for example, if I want to increment it by 10.
Can somebody show me what I'm doing wrong?
Thanks.
def ADS: F_J<0b100001,(outs),(ins i32imm:$amount),"ADS $amount",[(set SP, (add SP, i32imm:$amount))] > {
bits<10> amount;
let Inst{9-0} = amount;
let isReMaterializable = 1;
let mayLoad = 0;
let mayStore = 0;
let Defs = [SP];
let Uses = [SP];
}...
2018 Dec 06
3
New to LLVM. Need help generating assembly
....e. sp = sp + amount). During assembly generation, the string that gets emitted is "ADS $SP" rather than "ADS 10", for example, if I want to increment it by 10.
>>
>> Can somebody show me what I'm doing wrong?
>> Thanks.
>>
>> def ADS: F_J<0b100001,(outs),(ins i32imm:$amount),"ADS $amount",[(set SP, (add SP, i32imm:$amount))] > {
>>
>> bits<10> amount;
>>
>> let Inst{9-0} = amount;
>> let isReMaterializable = 1;
>> let mayLoad = 0;
>> let mayStor...