Displaying 20 results from an estimated 96 matches for "beq".
Did you mean:
be
2018 Jan 10
3
llvm-mc assembler, GNU as, and pc-relative branches for Arm/AArch64/Mips
...exwo?t=10m44s> would be great.
Please note: it's possible some of the differences I'm seeing are due to
different default ASM variants or default target options across tools
- do let me know
if it seems that's the case.
# Comparing Mips behaviour
$ cat test-mips.s
lab:
beq $6, $7, 128
bne $4, $5, 64
beq $6, $7, 128
bne $4, $5, 64
Assemble with llvm-mc: `llvm-mc -triple=mipsel-unknown-linux test-mips.s
-filetype=obj > foo.o` and then disassemble with `llvm-objdump -d -r`:
foo.o: file format ELF32-mips
Disassembly of section .text:
lab:...
2007 Apr 23
4
[LLVMdev] Instruction pattern type inference problem
...patterns that it was able to
before, but I'm not clear on why that's the case.
This isn't just the results of instructions, but also immediate
values as well. It seems to affect a smattering of node types. Any
insights?
For instance:
where GPRegs contains types [i32, f32]
def BEQ : IF8<Opc.BEQ,
(ops GPRegs:$Rsrc1, GPRegs:$Rsrc2, brtarget:$SImm16),
"beq $Rsrc1, $Rsrc2, $SImm16",
[(brcond (i32 (seteq GPRegs:$Rsrc1, GPRegs:$Rsrc2)), bb:
$SImm16)], s_br>;
Tablegen reports:
BEQ: (brcond:void (setcc:i32 GPRegs:i32:$Rsr...
2007 Apr 23
0
[LLVMdev] Instruction pattern type inference problem
...t I'm not clear on why that's the case.
ok
> This isn't just the results of instructions, but also immediate
> values as well. It seems to affect a smattering of node types. Any
> insights?
>
> For instance:
>
> where GPRegs contains types [i32, f32]
>
> def BEQ : IF8<Opc.BEQ,
> (ops GPRegs:$Rsrc1, GPRegs:$Rsrc2, brtarget:$SImm16),
> "beq $Rsrc1, $Rsrc2, $SImm16",
> [(brcond (i32 (seteq GPRegs:$Rsrc1, GPRegs:$Rsrc2)), bb:
> $SImm16)], s_br>;
>
> Tablegen reports:
> BEQ: (brcond:v...
2020 Oct 06
3
[MC] Questions about relaxation in MC
...compared the result with the GNU assembler. GNU assembler will convert the
branch to inverted one plus jump to make the branch possible. The range of
unconditional jump is 1MiB. It looks like
##########################
bne a0, a1, FAR_BRANCH
…
FAR_BRANCH:
converted to
##########################
beq a0, a1, SKIP_J
j FAR_BRANCH
SKIP_J:
…
FAR_BRANCH:
I found there is a target hook, relaxInstruction, that tries to achieve the
similar goal. However, the target hook only replaces one MCInst with
another one with a larger branch range. For example, c.beqz will be
converted to beq in the RISC-V back...
2006 Mar 17
3
[LLVMdev] Stupid '-load-vn -licm' question (LLVM 1.6)
...PowerPC backend:
LBB_matches_1: ; regex6
lbz r4, 0(r3)
LBB_matches_2: ; NodeBlock
rlwinm r5, r4, 0, 24, 31
cmplwi cr0, r5, 98
blt cr0, LBB_matches_4 ; LeafBlock
LBB_matches_3: ; LeafBlock1
rlwinm r4, r4, 0, 24, 31
cmpwi cr0, r4, 98
beq cr0, LBB_matches_8 ; ret_true
b LBB_matches_5 ; NewDefault
LBB_matches_4: ; LeafBlock
rlwinm r4, r4, 0, 24, 31
cmpwi cr0, r4, 97
beq cr0, LBB_matches_8 ; ret_true
LBB_matches_5: ; NewDefault
LBB_matches_6: ; loop_step
I'm particularly confused by the rl...
2020 Oct 06
3
Questions about relaxation in MC
...d one
> plus jump to make the branch possible. The range of unconditional
> jump is 1MiB. It looks like
>
> ##########################
> bne a0, a1, FAR_BRANCH
> …
> FAR_BRANCH:
>
> converted to
>
> ##########################
> beq a0, a1, SKIP_J
> j FAR_BRANCH
> SKIP_J:
> …
> FAR_BRANCH:
>
> I found there is a target hook, relaxInstruction, that tries to
> achieve the similar goal. However, the target hook only replaces
> one MCInst with another one with a larger branch ran...
2007 Apr 23
1
[LLVMdev] Instruction pattern type inference problem
...gt;
> ok
>
>> This isn't just the results of instructions, but also immediate
>> values as well. It seems to affect a smattering of node types. Any
>> insights?
>>
>> For instance:
>>
>> where GPRegs contains types [i32, f32]
>>
>> def BEQ : IF8<Opc.BEQ,
>> (ops GPRegs:$Rsrc1, GPRegs:$Rsrc2, brtarget:$SImm16),
>> "beq $Rsrc1, $Rsrc2, $SImm16",
>> [(brcond (i32 (seteq GPRegs:$Rsrc1, GPRegs:$Rsrc2)), bb:
>> $SImm16)], s_br>;
>>
>> Tablegen reports...
2012 May 08
1
Translation of Linear minimization probelm from matlab to r
Hi everyone, i?m a new user of R and i?m trying to translate an linear
optimization problem from Matlab into r.
The matlab code is as follow:
options = optimset('Diagnostics','on');
[x fval exitflag] = linprog(f,A,b,Aeq,beq,lb,ub,[],options);
exitflag
fval
x=round(x);
Where:
f = Linear objective function vector (vector of 45,rows)
A = Matrix for linear inequality constraints (3colums 45 rows matrix)
b = Vector for linear inequality constraints (3 rows vector)
Aeq = Matrix for linear equality constraints (45 colu...
2011 May 02
2
[LLVMdev] LiveVariables not updated in MachineBasicBlock::SplitCriticalEdge?
...live in blocks: 5, 6, 7, 8, 10, 12, 13, 19,
Killed by:
#0: BNE %vreg81<kill>, %ZERO, <BB#17>; CPURegs:%vreg81
2. During PHI nodes elimination, critical edge BB#14-#17 is split and BB#20
is inserted. The two terminators of BB#14 (BNE and J ) are replaced with a
conditional branch (BEQ) when MachineBasicBlock::updateTerminator() is
called.
3. After PHI nodes elimination.
- Machine IR:
BB#14: derived from LLVM BB %for.cond151.preheader
Predecessors according to CFG: BB#13 BB#19
%vreg29<def> = COPY %vreg180<kill>; CPURegs:%vreg29,%vreg180
%vreg30<def>...
2013 May 21
0
[PATCH] 02-
...t N, opus_val16 mem)
+{
+ int i;
+
+ __asm__ __volatile__(
+ "vdup.s16 d8, %1;\n" //Duplicate num in d8 lane
+ "vdup.s16 q5, %4;\n" //Duplicate mem in q5 lane
+
+ /* We try to process 16 samples at a time */
+ "movs %5, %3, lsr #4;\n"
+ "beq .celt_fir1_process16_done_%=;\n"
+
+ ".celt_fir1_process16_%=:\n"
+ /* Load 16 x values in q0, q1 lanes */
+ "vld1.16 {q0-q1}, [%0]!;\n"
+
+ /* Init four 32 bits sum in q7, q8, q9, q10 lanes */
+ "vshll.s16 q7, d0, %[SIGSHIFT];\n"
+ &...
2017 Sep 14
2
Live Register Spilling
...contains the data to be shifted.
> The $reg1 contains the data after shifting is performed.
>
> What i want to achieve is to expand sllv instruction to the following routine:
>
> andi $reg3,$reg3,0x1f //To mask the 5 bit LSB shifting amount
> #BB_1: beq $reg3,$zero,#BB_2 //Branch out from basic block if shifting amount is zero
> sub $reg3,$reg3,1 //To subtract 1 from the shifting amount
> sll $reg2,$reg2,1 //Shift by 1 bit
> j #BB_1...
2007 Apr 23
0
[LLVMdev] Instruction pattern type inference problem
...#39;m not clear on why that's the case.
>
> This isn't just the results of instructions, but also immediate
> values as well. It seems to affect a smattering of node types. Any
> insights?
>
> For instance:
>
> where GPRegs contains types [i32, f32]
>
> def BEQ : IF8<Opc.BEQ,
> (ops GPRegs:$Rsrc1, GPRegs:$Rsrc2, brtarget:$SImm16),
> "beq $Rsrc1, $Rsrc2, $SImm16",
> [(brcond (i32 (seteq GPRegs:$Rsrc1, GPRegs:$Rsrc2)), bb:
> $SImm16)], s_br>;
>
> Tablegen reports:
> BEQ: (brcond:...
2013 May 21
2
[PATCH] 02-Add CELT filter optimizations
...t N, opus_val16 mem)
+{
+ int i;
+
+ __asm__ __volatile__(
+ "vdup.s16 d8, %1;\n" //Duplicate num in d8 lane
+ "vdup.s16 q5, %4;\n" //Duplicate mem in q5 lane
+
+ /* We try to process 16 samples at a time */
+ "movs %5, %3, lsr #4;\n"
+ "beq .celt_fir1_process16_done_%=;\n"
+
+ ".celt_fir1_process16_%=:\n"
+ /* Load 16 x values in q0, q1 lanes */
+ "vld1.16 {q0-q1}, [%0]!;\n"
+
+ /* Init four 32 bits sum in q7, q8, q9, q10 lanes */
+ "vshll.s16 q7, d0, %[SIGSHIFT];\n"
+ &...
2012 Feb 13
0
[PATCH 05/14] arm: implement exception and hypercall entries.
...r0, {r1 - r3}
+ add r5, sp, #CTXT_SSP
+ add r0, sp, #CTXT_FRAME_SIZE
+SPFIX( addne r0, r0, #4 )
+ str r1, [sp]
+ mov r1, lr
+ stmia r5, {r0 - r3}
+
+ mrc p15, 0, r0, c6, c0, 0
+ mrc p15, 0, r1, c5, c0, 0
+
+ and r4, r3, #PSR_MODE_MASK
+ eors r4, r4, #PSR_MODE_SVC
+
+ beq do_data_abort
+
+ cpsie i
+
+ cci r8
+ ldr r9, [r8]
+
+ ldr r10, [r9, #OFFSET_VCPU_INFO ]
+ ldr r14, [r9, #(OFFSET_ARCH_VCPU + OFFSET_GUEST_CONTEXT + OFFSET_VCPU_VBAR)]
+ cmp r14, #0
+ beq trap_table_invalid
+
+ add r14, r14, #OFFSET_VECTOR_DABT
+
+ str r0, [r10, #(OFF...
2012 Dec 19
0
[LLVMdev] question about printAliasInstr
...e in AsmWriterEmitter::EmitPrintAliasInstruction seems to
ignore instruction aliases if an operand that is not a register nor an
immediate appears in the result instruction DAG. For example, the
folllowing instruction alias pattern is not handled in MipsGenAsmWriter.inc
because the third operand of BEQ is a brtarget:
def : InstAlias<"b $offset", (BEQ ZERO, ZERO, brtarget:$offset)>;
The code which decides not to include this alias is located near line 856
in AsmWriterEmitter.cpp:
for (unsigned i = 0, e = LastOpNo; i != e; ++i) {
...
switch (RO.Kind) {
case CodeGenInstAlias::...
2001 Jul 07
2
Bad unaligned kernel access with ext3 0.8.0
...04 f1 47 mov a1,s1
fffffc0000883f4c: 00 00 5e b7 stq ra,0(sp)
fffffc0000883f50: 40 00 69 a4 ldq t2,64(s0)
fffffc0000883f54: 2e 02 43 a8 ldl_l t1,558(t2)
fffffc0000883f58: 01 50 40 44 and t1,0x2,t0
fffffc0000883f5c: 03 00 20 e4 beq t0,fffffc0000883f6c <ext3_bmap+0x3c>
fffffc0000883f60: 02 58 40 44 xor t1,0x2,t1
fffffc0000883f64: 2e 02 43 b8 stl_c t1,558(t2)
fffffc0000883f68: 58 09 40 e4 beq t1,fffffc00008864cc <ext3_journal_get_write_access+0x5c>
fffffc0000883f6c:...
2004 Apr 19
5
OCFS Hang
...s unkillable. On Node 2,
the "ls" on /u06/oradata/database worked fine. All of the other file
systems (on both nodes) are fine.
Also, what we can't get rid of is this process:
oracle 23593 1 95 10:00 ? 04:45:11 oracleXYZ2
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
and it's been accumulating CPU time since the hang. I'm
unsure if this process is a victim or the cause of the hangs.
I hope that I have provided enough information about the
situation. If not, let me know and I'll get more.
Regards,
Randy
---...
2019 Mar 25
3
How to use bugpoint for backend native code generation?
...rror: error in backend: out of range pc-relative fixup value
when llvm generates native code after running the transformation pass. I think it’s because my transformation pass increases the size of the original code and thus some branch instructions cannot reach their destination (for example, the beq instruction can only jump to a pc-relative destination within range -256 to 254 bytes).
It looks like bugpoint is a good tool to pinpoint which branch instruction caused the error. Unfortunately the blogs I found online are all about using bugpoint for IR passes but not for native code generation....
2017 Sep 12
2
Live Register Spilling
Running llc with '-verify-machineinstrs' may tell you which instruction break the SSA form.
Ruiling
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of jin chuan see via llvm-dev
Sent: Monday, September 11, 2017 10:02 AM
To: Matthias Braun <mbraun at apple.com>
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Live Register Spilling
Sorry about the
2020 Mar 16
2
Redundant copies
...uggests it might require a bit more of work to discover something that will ultimately lead to a redundant copy. I will investigate this option as well.
I correct myself here: in the MIR dumps (for this example) right after copy coalescing the copy is redundant even at vregs
%14:gpr = COPY %0
BEQ %6, $x0, %bb.3
PseudoBR %bb.1
bb.1.for.body.preheader:
%14:gpr = COPY %0
Kind regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200316/29fa7739/attachment.html>