[llvm] [X86] Added support for 16bit LEA instruction (PR #122102)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 04:47:04 PST 2025
================
@@ -0,0 +1,14 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -mtriple=x86_64-linux -mattr=+ndd | FileCheck %s --check-prefixes=CHECK
+
+define dso_local signext range(i16 1, 0) i16 @lea16bit(i16 noundef signext %in) local_unnamed_addr #0 {
+; CHECK-LABEL: lea16bit:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: # kill: def $edi killed $edi def $rdi
+; CHECK-NEXT: leaw 1(%rdi,%rdi), %ax
+; CHECK-NEXT: retq
+entry:
----------------
RKSimon wrote:
remove the entry tag
https://github.com/llvm/llvm-project/pull/122102
More information about the llvm-commits
mailing list