[llvm] [Xtensa] Add esp32/esp8266 cpus implementation. (PR #152409)

Andrei Safronov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 12:23:56 PDT 2025


================
@@ -0,0 +1,12 @@
+; This tests that llc accepts all valid Xtensa CPUs
+
+; RUN: llc < %s --mtriple=xtensa --mcpu=esp8266 2>&1 | FileCheck %s
+; RUN: llc < %s --mtriple=xtensa --mcpu=esp32 2>&1 | FileCheck %s
+; RUN: llc < %s --mtriple=xtensa --mcpu=generic 2>&1 | FileCheck %s
+
+; CHECK-NOT: {{.*}}  is not a recognized processor for this target
+; INVALID: {{.*}}  is not a recognized processor for this target
+
+define i32 @f(i32 %z) {
+	ret i32 0
----------------
andreisfr wrote:

Fixed.

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


More information about the llvm-commits mailing list