[llvm] [llvm-ml] Add a test for `extrn` (PR #173059)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 19 09:51:21 PST 2025


https://github.com/nico created https://github.com/llvm/llvm-project/pull/173059

This adds a test for the change from https://reviews.llvm.org/D140679.

>From 290e22a846919a31ff5a395601fdffc50c91fb64 Mon Sep 17 00:00:00 2001
From: Nico Weber <thakis at chromium.org>
Date: Fri, 19 Dec 2025 12:50:52 -0500
Subject: [PATCH] [llvm-ml] Add a test for `extrn`

This adds a test for the change from https://reviews.llvm.org/D140679.
---
 llvm/test/tools/llvm-ml/extern.asm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/llvm/test/tools/llvm-ml/extern.asm b/llvm/test/tools/llvm-ml/extern.asm
index 9126f9d06090a..731a64206a6d2 100644
--- a/llvm/test/tools/llvm-ml/extern.asm
+++ b/llvm/test/tools/llvm-ml/extern.asm
@@ -6,6 +6,9 @@ extern foo : dword, bar : word, baz : proc
 ; CHECK: .extern bar
 ; CHECK: .extern baz
 
+extrn quux : dword
+; CHECK: .extern quux
+
 .code
 mov ebx, foo
 ; CHECK-32: mov ebx, dword ptr [foo]
@@ -15,4 +18,8 @@ mov bx, bar
 ; CHECK-32: mov bx, word ptr [bar]
 ; CHECK-64: mov bx, word ptr [rip + bar]
 
+mov edx, quux
+; CHECK-32: mov edx, dword ptr [quux]
+; CHECK-64: mov edx, dword ptr [rip + quux]
+
 END



More information about the llvm-commits mailing list