[llvm] [BPF] Use 32-bit move for zero extension when possible (PR #77501)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 04:55:14 PST 2024


================
@@ -0,0 +1,34 @@
+; RUN: llc -march=bpfel -mcpu=v3 --filetype=obj < %s | llvm-objdump -d - \
----------------
eddyz87 wrote:

Matching patterns a bit nicer with objdump, because llc adds some details in the output:

```
test1:                                  # @test1 // want to match
.Ltest1$local:                                   // don't want to match
	.type	.Ltest1$local, at function          // don't want to match
	.cfi_startproc                           // don't want to match
# %bb.0:                                # %entry
	w0 = w1
        exit

```
But you are right, the call to objdump is a bit wasteful. I'll update the test.

https://github.com/llvm/llvm-project/pull/77501


More information about the llvm-commits mailing list